π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(settings):limit-shell-to-internal-users
Aswin Asokce0006babfb2
diff --git a/web/apps/photos/src/components/sidebar/SidebarDrawerShell.tsx b/web/apps/photos/src/components/sidebar/SidebarDrawerShell.tsxindex 141b46ddd7..0ef7413b9b 100644--- a/web/apps/photos/src/components/sidebar/SidebarDrawerShell.tsx+++ b/web/apps/photos/src/components/sidebar/SidebarDrawerShell.tsx@@ -7,6 +7,7 @@ import {} from "@mui/material";import { SidebarPanelContext } from "ente-base/components/mui/SidebarDrawerContext";import type { ModalVisibilityProps } from "ente-base/components/utils/modal";+import { useSettingsSnapshot } from "ente-new/photos/components/utils/use-snapshot";import { t } from "i18next";import React, { useRef } from "react";@@ -18,11 +19,12 @@ export function SidebarDrawerShell({}: React.PropsWithChildren<ModalVisibilityProps>) {const theme = useTheme();const wide = useMediaQuery(theme.breakpoints.up("md"));+ const { isInternalUser } = useSettingsSnapshot();const panel = useRef<HTMLDivElement>(null);const container = () => panel.current;- // ponytail: retain the existing stacked layout on narrow screens.- if (!wide) return children;+ // ponytail: retain stacked drawers outside the internal wide-screen preview.+ if (!isInternalUser || !wide) return children;return (<Dialog