π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix map view empty state layout and add missing translations
Anand Baburajan639a7efe958f
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsxindex b329df2362..6b1986d013 100644--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx@@ -975,10 +975,7 @@ export const CollectionMapDialog: React.FC<CollectionMapDialogProps> = ({return (<CenteredBox onClose={onClose} closeLabel={t("close")}><Typography variant="body" color="text.secondary">- {t("no_geotagged_photos", {- defaultValue:- "No photos found with location information",- })}+ {t("no_geotagged_photos")}</Typography></CenteredBox>);@@ -1371,7 +1368,9 @@ function CollectionSidebar({variant="small"sx={{ color: "text.muted", fontSize: "14px" }}>- {collectionSummary.fileCount} memories+ {t("photos_count", {+ count: collectionSummary.fileCount,+ })}{visibleDate && ` Β· ${visibleDate}`}</Typography></Box>@@ -1429,16 +1428,20 @@ function CollectionSidebar({onClose={onClose}/>)}- <Typography variant="body" sx={{ fontWeight: 600 }}>- {t("no_photos_found_here", {- defaultValue: "No photos found here",- })}- </Typography>- <Typography variant="small" color="text.secondary">- {t("zoom_out_to_see_photos", {- defaultValue: "Zoom out to see photos",- })}- </Typography>+ <EmptyStateMessage>+ <Typography+ variant="body"+ sx={{ fontWeight: 600 }}+ >+ {t("no_photos_found_here")}+ </Typography>+ <Typography+ variant="small"+ color="text.secondary"+ >+ {t("zoom_out_to_see_photos")}+ </Typography>+ </EmptyStateMessage></EmptyState>)}</FileListContainer>@@ -1899,7 +1902,9 @@ const MapCover = React.memo(function MapCover({<CoverContentContainer><CoverTitle>{name}</CoverTitle>- <CoverSubtitle>{totalCount} memories</CoverSubtitle>+ <CoverSubtitle>+ {t("photos_count", { count: totalCount })}+ </CoverSubtitle></CoverContentContainer></CoverImageContainer></CoverContainer>@@ -2077,14 +2082,26 @@ const CenteredBoxContainer = styled(Box)({const EmptyStateContainer = styled(Box)(({ theme }) => ({minHeight: "100%",+ position: "relative",display: "flex",flexDirection: "column",- alignItems: "center",- justifyContent: "center",- textAlign: "center",+ alignItems: "stretch",+ justifyContent: "flex-start",paddingTop: 0,paddingBottom: theme.spacing(4),color: theme.vars.palette.text.secondary,- gap: theme.spacing(1),overflow: "auto",}));++const EmptyStateMessage = styled(Box)(({ theme }) => ({+ position: "absolute",+ top: "50%",+ left: "50%",+ transform: "translate(-50%, -50%)",+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ justifyContent: "center",+ textAlign: "center",+ gap: theme.spacing(1),+}));diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.jsonindex 9675263bf4..20fb31a293 100644--- a/web/packages/base/locales/en-US/translation.json+++ b/web/packages/base/locales/en-US/translation.json@@ -291,6 +291,9 @@"search": "Search","search_results": "Search results","no_results": "No results found",+ "no_photos_found_here": "No photos found here",+ "zoom_out_to_see_photos": "Zoom out to see photos",+ "no_geotagged_photos": "No photos found with location information","search_hint": "Search for albums, dates, descriptions, ...","albums_search_hint": "Search for albums...","album": "Album",