π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: misc stuff
anandbaburajancfd83e62bba5
diff --git a/web/apps/photos/src/components/TripTemplate/PhotoFan.tsx b/web/apps/photos/src/components/TripTemplate/PhotoFan.tsxindex a91f62dc48..f08b8806a4 100644--- a/web/apps/photos/src/components/TripTemplate/PhotoFan.tsx+++ b/web/apps/photos/src/components/TripTemplate/PhotoFan.tsx@@ -131,7 +131,6 @@ const PhotoFanContainer = styled(Box)({const PhotoFrame = styled(Box)(({ theme }) => ({position: "absolute",border: "2px solid white",- boxShadow: theme.shadows[10],zIndex: 10,width: "180px",height: "207px",@@ -164,7 +163,6 @@ const MainPhotoFrame = styled(Box)(({ theme }) => ({width: "100%",height: "100%",border: "2px solid white",- boxShadow: theme.shadows[10],zIndex: 20,borderRadius: "14px",overflow: "hidden",diff --git a/web/apps/photos/src/components/TripTemplate/TripCover.tsx b/web/apps/photos/src/components/TripTemplate/TripCover.tsxindex ffce50672a..99280ff8b9 100644--- a/web/apps/photos/src/components/TripTemplate/TripCover.tsx+++ b/web/apps/photos/src/components/TripTemplate/TripCover.tsx@@ -42,7 +42,7 @@ export const TripCover = memo<TripCoverProps>(alt="Trip Cover"fillstyle={{ objectFit: "cover" }}- sizes="(max-width: 768px) 90vw, (max-width: 1200px) 45vw, 600px"+ sizes="600px"/><GradientOverlay /></>@@ -56,7 +56,7 @@ export const TripCover = memo<TripCoverProps>()}<LogoContainer>- <EnteLogo height={24} />+ <EnteLogo height={20} /></LogoContainer><ContentContainer>diff --git a/web/apps/photos/src/components/TripTemplate/index.tsx b/web/apps/photos/src/components/TripTemplate/index.tsxindex d2faa4a4df..7249067e14 100644--- a/web/apps/photos/src/components/TripTemplate/index.tsx+++ b/web/apps/photos/src/components/TripTemplate/index.tsx@@ -220,11 +220,13 @@ export const TripTemplate: React.FC<TripTemplateProps> = ({return (<TripTemplateContainer>- <TopNavButtons- onAddPhotos={onAddPhotos}- downloadAllFiles={downloadAllFiles}- enableDownload={enableDownload}- />+ {!openFileViewer && (+ <TopNavButtons+ onAddPhotos={onAddPhotos}+ downloadAllFiles={downloadAllFiles}+ enableDownload={enableDownload}+ />+ )}{/* Left Sidebar - Floating Timeline */}<TimelineSidebar ref={timelineRef}><TimelineContent>diff --git a/web/apps/photos/src/components/TripTemplate/mapHelpers.ts b/web/apps/photos/src/components/TripTemplate/mapHelpers.tsindex e976c77ef8..46502f58c4 100644--- a/web/apps/photos/src/components/TripTemplate/mapHelpers.ts+++ b/web/apps/photos/src/components/TripTemplate/mapHelpers.ts@@ -9,15 +9,7 @@ export const clusterPhotosByProximity = () => {if (photos.length === 0) return [];- // Mobile: no clustering for better timeline experience- // Desktop: 1km clustering for cleaner map display- const isMobile = screenDimensions.width < 768;- if (isMobile) {- // Return each photo as its own cluster on mobile- return photos.map((photo) => [photo]);- }-- // Desktop: 10km clustering distance (roughly 0.1 degrees)+ // 10km clustering distance (roughly 0.1 degrees)const distanceThreshold = 0.1; // About 10km in degrees// First, group photos by day@@ -101,9 +93,7 @@ export const calculateOptimalZoom = (}// Calculate zoom based on cluster density and actual screen dimensions- // Timeline takes more space on mobile (50%) vs desktop (50%)- const isMobile = screenDimensions.width < 768;- const timelineSizeRatio = isMobile ? 0.5 : 0.5;+ const timelineSizeRatio = 0.5;const visibleMapWidth = screenDimensions.width * (1 - timelineSizeRatio);// Calculate effective span considering cluster density@@ -547,8 +537,7 @@ export const getMapCenter = (const lngSpan = maxLng - minLng;const paddedSpan = Math.max(lngSpan * 1.4, 0.1); // Minimum span for single locations- const isMobile = screenDimensions.width < 768;- const timelineSizeRatio = isMobile ? 0.5 : 0.5;+ const timelineSizeRatio = 0.5;const mapSizeRatio = 1 - timelineSizeRatio;const screenWidthInDegrees = paddedSpan / mapSizeRatio;diff --git a/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts b/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.tsindex 6498269130..900b70167e 100644--- a/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts+++ b/web/apps/photos/src/components/TripTemplate/utils/scrollUtils.ts@@ -135,8 +135,7 @@ export const handleTimelineScroll = ({}}- const isMobile = screenDimensions.width < 768;- const timelineSizeRatio = isMobile ? 0.5 : 0.5;+ const timelineSizeRatio = 0.5;const allLngs = clusterCenters.map((c) => c.lng);const minLng = Math.min(...allLngs);@@ -248,8 +247,7 @@ export const handleMarkerClick = ({const lngSpan = maxLng - minLng;const paddedSpan = Math.max(lngSpan * 1.4, 0.1);- const isMobile = screenDimensions.width < 768;- const timelineSizeRatio = isMobile ? 0.5 : 0.5;+ const timelineSizeRatio = 0.5;const mapSizeRatio = 1 - timelineSizeRatio;const screenWidthInDegrees = paddedSpan / mapSizeRatio;const shiftAmount = screenWidthInDegrees * (timelineSizeRatio / 2);diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 635b9c303d..0949ece55e 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -1029,6 +1029,8 @@ const Page: React.FC = () => {mb: "12px",px: "24px","@media (width < 720px)": { px: "4px" },+ opacity: isFileViewerOpen ? 0 : 1,+ pointerEvents: isFileViewerOpen ? "none" : "auto",},showSelectionBar && { borderColor: "accent.main" },]}