Repository navigation
Fold the phone layout's panels, slider and metadata into slide-up sheets - #440
Merged
Merged
Conversation
On small screens the Control and Search panels now share one bottom sheet, and the album badge and seek slider share one top sheet. Each slides between open and a grab handle by drag, flick or tap, like Google Maps on the iPhone. The bottom sheet also takes over the metadata drawer: its file name row sits under the panels, and a third, "details" stop opens the drawer's contents over the photo (also by swiping up on the photo, or the i/arrow keys). Desktop and tablet layouts are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…where it can't work Held sideways, an iPhone has no toolbar under the page, and a drag on the collapsed bottom sheet's handle at the very bottom edge was taken by the swipe-up-to-go-home gesture. Collapsed, the handle now grows to 46px with its pill at the top. The bottom sheet's peek is measured from the handle, since that peek is now a calc() that reads back unevaluated. The panels under a collapsed handle are hidden once it has slid down: the Grid View checkmark overhung into the strip left showing. iPhone Safari has no page Fullscreen API, so the Fullscreen button did nothing there. It is hidden wherever document.fullscreenEnabled is false. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46px was more than the home-indicator strip needs. 34px, with the pill about 25px above the bottom edge, still keeps drags clear of the swipe-up-to-go-home gesture on an iPhone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34px still lost drags to the iPhone's swipe-home gesture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On phones, the Control and Search panels at the bottom of the window and the album badge and seek slider at the top were hard to use. This folds them into two slide-up sheets, in the style of Google Maps on the iPhone, and moves the metadata drawer into the bottom sheet.
Phone layout
The layout switches on at 600px wide and below, or 500px tall and below on a touch screen (phones held sideways). Desktop and tablet layouts are unchanged.
i, ↑, ↓ and Esc open and close the details.Layout around the sheets
panel-anchor.jsalso publishes how far the stranded iPadOS layout viewport hangs below the visible one, so the sheet clears it too.Testing
mobile-sheets,mobile-sheets-details,seek-slider-sheetandmetadata-drawer-sheet. All 1140 frontend tests pass; lint and format checks are clean.🤖 Generated with Claude Code