Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[photos][web] Open People navigation fullscreen on mobile

AswinAsok1cc1cbc90c8b
diff --git a/web/apps/photos/src/components/gallery/BarImpl.tsx b/web/apps/photos/src/components/gallery/BarImpl.tsx
index 151c6273d4..de452a1431 100644
--- a/web/apps/photos/src/components/gallery/BarImpl.tsx
+++ b/web/apps/photos/src/components/gallery/BarImpl.tsx
@@ -608,12 +608,9 @@ export const GalleryBarImpl: React.FC<GalleryBarImplProps> = ({
"aria-labelledby": titleID,
inert: !mobileDrawerProps.open,
sx: (theme) => ({
- width: mode == "people" ? "min(328px, 94vw)" : "100%",
- borderRadius: mode == "people" ? "0 20px 20px 0" : 0,
- boxShadow:
- mode == "people"
- ? "0 24px 60px rgba(0,0,0,0.3)"
- : "none",
+ width: "100%",
+ borderRadius: 0,
+ boxShadow: "none",
bgcolor: "#F4F4F4",
...theme.applyStyles("dark", { bgcolor: "#161616" }),
}),
diff --git a/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx b/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
index 307b11c147..8a50382268 100644
--- a/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
+++ b/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
@@ -80,7 +80,7 @@ export const PhotosNavigationShell: React.FC<
if (!mobile) closeMobileNavigation();
}, [mobile, closeMobileNavigation]);
const handleChangeMode = (mode: GalleryBarMode) => {
- if (mode == "people") {
+ if (mode == "people" && !mobile) {
closeMobileNavigation();
props.onChangeMode(mode);
return;