π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(FileInfo):minor-interaction-corrections
Aswin Asok4591c5684a6a
diff --git a/web/apps/albums/src/public-album/viewer/components/FileInfo.tsx b/web/apps/albums/src/public-album/viewer/components/FileInfo.tsxindex dd2e85c02a..18d7b81f61 100644--- a/web/apps/albums/src/public-album/viewer/components/FileInfo.tsx+++ b/web/apps/albums/src/public-album/viewer/components/FileInfo.tsx@@ -370,6 +370,7 @@ const RawExif: React.FC<RawExifProps> = ({onRootClose={handleRootClose}title={t("exif")}caption={fileName}+ showRootCloseButton={false}actionButton={<CopyButton size="small" text={JSON.stringify(tags)} />}diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsxindex 93862059e6..b27eea624f 100644--- a/web/packages/base/components/mui/SidebarDrawer.tsx+++ b/web/packages/base/components/mui/SidebarDrawer.tsx@@ -139,6 +139,8 @@ type SidebarDrawerTitlebarProps = Pick<* trailing edge of the sidebar.*/actionButton?: React.ReactNode;+ /** Whether to show the trailing close button for the root drawer. */+ showRootCloseButton?: boolean;};/**@@ -151,6 +153,7 @@ export const SidebarDrawerTitlebar: React.FC<SidebarDrawerTitlebarProps> = ({onClose,onRootClose,actionButton,+ showRootCloseButton = true,}) => (<Stack sx={{ gap: "4px" }}><Stack direction="row" sx={{ justifyContent: "space-between" }}>@@ -159,9 +162,11 @@ export const SidebarDrawerTitlebar: React.FC<SidebarDrawerTitlebarProps> = ({</IconButton><Stack direction="row" sx={{ gap: "4px" }}>{actionButton && actionButton}- <IconButton onClick={onRootClose} color="secondary">- <CloseIcon />- </IconButton>+ {showRootCloseButton && (+ <IconButton onClick={onRootClose} color="secondary">+ <CloseIcon />+ </IconButton>+ )}</Stack></Stack><Stack sx={{ px: "16px", gap: "4px" }}>diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsxindex 50d1682ad3..79704a968f 100644--- a/web/packages/gallery/components/FileInfo.tsx+++ b/web/packages/gallery/components/FileInfo.tsx@@ -348,7 +348,6 @@ export const FileInfo: React.FC<FileInfoProps> = ({allowEdits,onFileMetadataUpdate,onUpdateCaption,- onClose,onNavigationLockChange: setCaptionNavigationLocked,}}/>@@ -795,7 +794,6 @@ type CaptionProps = Pick<| "allowEdits"| "onFileMetadataUpdate"| "onUpdateCaption"- | "onClose"| "onNavigationLockChange">;@@ -804,7 +802,6 @@ const Caption: React.FC<CaptionProps> = ({allowEdits,onFileMetadataUpdate,onUpdateCaption,- onClose,onNavigationLockChange,}) => {const [isSaving, setIsSaving] = useState(false);@@ -826,7 +823,6 @@ const Caption: React.FC<CaptionProps> = ({await onFileMetadataUpdate?.();onUpdateCaption(file.id, newCaption);setIsSaving(false);- onClose();} catch (e) {log.error("Failed to update caption", e);setIsSaving(false);@@ -1260,6 +1256,7 @@ const RawExif: React.FC<RawExifProps> = ({onRootClose={handleRootClose}title={t("exif")}caption={fileName}+ showRootCloseButton={false}actionButton={<CopyButton size="small" text={JSON.stringify(tags)} />}