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

@@ -26,6 +26,7 @@
"migrate:manifest": "tsx scripts/migrate-manifest.ts",
"preinstall": "sh scripts/preinstall.sh",
"prepare": "simple-git-hooks",
"reinstall": "rm -rf **/*/node_modules && rm -rf node_modules && pnpm install",
"update:lastmodified": "tsx scripts/update-lastmodified.ts"
},
"dependencies": {