Skip to content

Mobile photo filmstrip + FAB, and enclose the desktop photo sidebar#70

Merged
ankitsejwal merged 6 commits into
mainfrom
mobile-filmstrip
Jul 1, 2026
Merged

Mobile photo filmstrip + FAB, and enclose the desktop photo sidebar#70
ankitsejwal merged 6 commits into
mainfrom
mobile-filmstrip

Conversation

@ankitsejwal

Copy link
Copy Markdown
Member

On phones the vertical photo list sat above the sheet, so a handful of photos pushed the canvas far down the page. This reworks the photo UI responsively while leaving desktop's three-column layout untouched.

  • Mobile (below lg): the sidebar is hidden and photos become a horizontal, sideways-scrolling filmstrip — a "+" tile first, then draggable thumbnails — so any number of photos stays one row tall and the sheet is visible immediately. A coral floating add-photos FAB sits bottom-right (with a stronger shadow + background ring so it stays distinct when it floats over the Export button). Tap a thumbnail to select/edit its frame, × to remove, drag to reorder.
  • Desktop: the left photo sidebar is now enclosed in a subtle card (black/3%, a light tint in dark mode), shown only when it holds photos. The drag-and-drop pad fills the sidebar's full height, and the Add-photos button is an outline that fills coral on hover.
  • Refactor: the copy-pasted hidden-file-input wiring is pulled into a shared useAddPhotos hook + PHOTO_ACCEPT constant, reused by the sidebar, hero, FAB, and filmstrip tile.

Before any photo exists, the centre empty-state hero still carries the first add on both layouts.

Typecheck, lint, and build all pass.

The hidden file input + addFiles wiring was copy-pasted across the
sidebar and hero (and about to be again for the mobile FAB and tile).
Pull it into useAddPhotos + a shared PHOTO_ACCEPT constant.
On phones the vertical photo list pushed the sheet far down the page.
Below lg, hide the sidebar and show a horizontal, sideways-scrolling
filmstrip (a + tile first, then draggable thumbnails) so any number of
photos stays one row tall, plus a floating add-photos FAB. Desktop keeps
the three-column layout untouched.
Make the drag-and-drop target fill the sidebar's height instead of a
fixed square, and switch the Add-photos button to an outline style that
fills coral only on hover.
So it stays distinct when it floats over the coral Export button.
@ankitsejwal ankitsejwal merged commit ea6fbc6 into main Jul 1, 2026
1 check passed
@ankitsejwal ankitsejwal deleted the mobile-filmstrip branch July 1, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant