π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(CollectionMapDialog):loading-state-fixed
Aswin Asoka11947eb9fe4
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsxindex 89cc82c72d..cd44c270b6 100644--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx@@ -1867,28 +1867,28 @@ function CollectionSidebar({{visibleDate && ` Β· ${visibleDate}`}</Typography></Box>- <IconButton- onClick={onClose}- size="small"+ <Boxsx={{- color: "text.secondary",- bgcolor: "fill.faint",- "&:hover": { bgcolor: "fill.muted" },+ display: "flex",+ alignItems: "center",+ gap: 1,}}>- <CloseIcon />- </IconButton>+ <IconButton+ onClick={onClose}+ size="small"+ sx={{+ color: "text.secondary",+ bgcolor: "fill.faint",+ "&:hover": { bgcolor: "fill.muted" },+ }}+ >+ <CloseIcon />+ </IconButton>+ </Box></Box></StickyDateHeader><FileListContainer>- {isVisiblePhotosUpdating ? (- <SidebarLoadingOverlay>- <ActivityIndicator size="24px" />- <Typography variant="small">- {t("loading")}- </Typography>- </SidebarLoadingOverlay>- ) : null}{visibleFiles.length > 0 ? (<FileListWithViewerfiles={visibleFiles}@@ -2733,25 +2733,6 @@ const FileListContainer = styled(Box)(({ theme }) => ({},}));-const SidebarLoadingOverlay = styled(Box)(({ theme }) => ({- position: "absolute",- inset: 0,- zIndex: 2,- display: "flex",- flexDirection: "column",- alignItems: "center",- justifyContent: "center",- gap: theme.spacing(1),- textAlign: "center",- color: theme.vars.palette.text.primary,- backgroundColor:- theme.palette.mode === "dark"- ? "rgba(0, 0, 0, 0.45)"- : "rgba(255, 255, 255, 0.75)",- backdropFilter: "blur(2px)",- pointerEvents: "auto",-}));-const StickyDateHeader = styled(Box)<{visible: boolean;variant: "overlay" | "static";diff --git a/web/apps/photos/src/components/FileListWithViewer.tsx b/web/apps/photos/src/components/FileListWithViewer.tsxindex f2432e9773..09e667514b 100644--- a/web/apps/photos/src/components/FileListWithViewer.tsx+++ b/web/apps/photos/src/components/FileListWithViewer.tsx@@ -293,7 +293,7 @@ export const FileListWithViewer: React.FC<FileListWithViewerProps> = ({const shouldShowMapButton =modePlus !== "search" &&activeCollectionSummary?.type === "all" &&- activeCollectionSummary.fileCount > 0;+ (activeCollectionSummary.fileCount > 0 || files.length > 0);const handleShowMap = useCallback(async () => {if (!activeCollectionSummary) return;