Skip to content

Sidebar + sheet polish: conditional Add button, Export icon, aligned floating page controls#69

Merged
ankitsejwal merged 6 commits into
mainfrom
sidebar-export-polish
Jul 1, 2026
Merged

Sidebar + sheet polish: conditional Add button, Export icon, aligned floating page controls#69
ankitsejwal merged 6 commits into
mainfrom
sidebar-export-polish

Conversation

@ankitsejwal

Copy link
Copy Markdown
Member

A round of UI polish on top of the warmer identity.

  • The left rail's Add photos button now only shows once there's at least one photo (the empty-state hero carries the action before that), and it's moved below the strip, stuck to the viewport bottom so it stays reachable without scrolling a tall pane.
  • Export PDF gets a download icon to match Add photos.
  • Top alignment: the shape toggle and page label used to sit in a row above the sheet, dropping the sheet's top below both sidebars. They now float on the sheet's top margin (screen-only, never in the PDF) so the sheet's top edge lines up with the photo strip and the options panel.
  • The floating shape control is glassy and, to avoid crowding the sheet's margin guide, collapses to a single current-shape icon at rest, expanding to the full three-way selector on hover or focus (focus so touch works).

Reworked the sheet's width measurement onto a callback ref so it still attaches when the empty-state hero gives way to the first real page.

Typecheck, lint, and build all pass.

With the empty-state hero now carrying the add action, the left rail's
button was redundant before any photo existed. Hide it until there's at
least one photo and move it below the strip, pinned to the bottom.
The shape toggle and page label sat in a row above the sheet, dropping
the sheet's top edge below where both sidebars begin. Overlay them on
the sheet's top margin instead (screen-only, never in the PDF) so the
sheet top lines up with the photo strip and the options panel.
Pinning it with mt-auto alone parked it at the bottom of the full-height
pane, off-screen until you scrolled. Stick it to the viewport bottom so
it stays reachable.
The overlay read like a raised button. Switch to a translucent white
glass with a hairline border, drop the shadow, and shrink the toggle so
it sits quietly on the sheet. Styled for white paper so it stays legible
in dark mode too.
It overlapped the sheet's margin guide. Show just the current shape as a
small glassy icon at rest, tucked into the corner, and reveal the full
three-way selector on hover or focus (focus so touch works too).
@ankitsejwal ankitsejwal merged commit 9c1166d into main Jul 1, 2026
1 check passed
@ankitsejwal ankitsejwal deleted the sidebar-export-polish branch July 1, 2026 07:13
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