feat: implement gallery view modes and enhance layout

- Added ListView and MasonryView components for displaying photos in different layouts.
- Introduced a new GalleryViewMode type to manage view settings.
- Updated PhotosRoot to conditionally render ListView or MasonryView based on the selected view mode.
- Created a PageHeader component with a ViewModeSegment for toggling between view modes.
- Removed the deprecated MasonryRoot component and adjusted imports accordingly.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-29 18:13:25 +08:00
parent 0411a1c658
commit 447caaba6a
23 changed files with 656 additions and 316 deletions

View File

@@ -33,7 +33,6 @@
"@radix-ui/react-avatar": "1.1.11",
"@radix-ui/react-dropdown-menu": "2.1.16",
"@react-hook/window-size": "3.1.1",
"@remixicon/react": "4.7.0",
"@t3-oss/env-core": "catalog:",
"@tanstack/react-query": "5.90.11",
"@use-gesture/react": "10.3.1",