Commit graph

9 commits

Author SHA1 Message Date
Francis Cao
e57239de1e Fix share parameter logic 2026-01-29 10:13:08 -08:00
Mike Cao
abfb78bb98 Fixed mobile menus.
Some checks failed
Node.js CI / build (push) Has been cancelled
2026-01-29 09:23:53 -08:00
Mike Cao
489c2712d1 Make ShareNav full width on mobile
Some checks are pending
Node.js CI / build (push) Waiting to run
- Remove fixed width, position, and border on mobile
- Use 100% width when onItemClick is provided (mobile context)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:44:18 -08:00
Mike Cao
b43e7fd3a7 Hide sidebar collapse button on mobile
onItemClick is only passed on mobile, so use it to detect mobile context

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:37:29 -08:00
Mike Cao
5880eae4e4 Fix NavMenu scrolling on mobile
- Add overflowY="auto" and flexGrow to menu container
- Menu now scrolls when content exceeds viewport height

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:34:47 -08:00
Mike Cao
6169a58e86 Center bottom icons when sidebar collapsed
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:13:23 -08:00
Mike Cao
452a385c4e Fix ShareNav collapse button and icon layout
- Use single PanelLeft icon with muted color
- Align collapse button to right of header
- Bottom icons: horizontal (Row) when expanded, vertical (Column) when collapsed

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:12:23 -08:00
Mike Cao
482d6c1e47 Add collapsible ShareNav sidebar
- Add collapse/expand button in header
- When collapsed: hide menu items and logo, show only toggle button
- Stack bottom icons vertically when collapsed
- Adjust grid layout to match collapsed nav width (60px vs 240px)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:08:53 -08:00
Mike Cao
c9e14f3bce Restructure share routes to fix client-side navigation
- Change from [...shareId] catch-all to [slug]/[[...path]] structure
- Layout with ShareProvider now persists across sub-route navigation
- Add slug to ShareData context (separate from shareId UUID)
- Links now use slug instead of UUID for proper routing
- Remove unused ShareFooter and ShareHeader files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 23:32:51 -08:00
Renamed from src/app/share/[...shareId]/ShareNav.tsx (Browse further)