π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Show single photo with +1 badge for 2-photo clusters in trip layout
Anand Baburajanaa2364836554
diff --git a/web/apps/photos/src/components/TripLayout/PhotoFan.tsx b/web/apps/photos/src/components/TripLayout/PhotoFan.tsxindex 535862181f..dd0d173471 100644--- a/web/apps/photos/src/components/TripLayout/PhotoFan.tsx+++ b/web/apps/photos/src/components/TripLayout/PhotoFan.tsx@@ -14,31 +14,6 @@ export const PhotoFan = memo<PhotoFanProps>(({ cluster, onPhotoClick }) => {return (<PhotoFanContainer>- {cluster.length === 2 && cluster[1] && (- <PhotoFrameTwo- onClick={() =>- cluster[1] && onPhotoClick?.(cluster, cluster[1].fileId)- }- >- <BackgroundLoadingBox />- <ImageWrapper sx={{ transform: "skewY(-8deg) scale(1.1)" }}>- {cluster[1].image && cluster[1].image.trim() !== "" && (- <img- src={cluster[1].image}- alt={cluster[1].name}- style={{- position: "absolute",- inset: 0,- width: "100%",- height: "100%",- objectFit: "cover",- zIndex: 1,- }}- />- )}- </ImageWrapper>- </PhotoFrameTwo>- )}{cluster.length >= 3 && (<>{cluster[1] && (@@ -124,6 +99,7 @@ export const PhotoFan = memo<PhotoFanProps>(({ cluster, onPhotoClick }) => {<LoadingBox />)}+ {cluster.length === 2 && <CountBadge>+1</CountBadge>}{cluster.length > 3 && (<CountBadge>+{cluster.length - 3}</CountBadge>)}diff --git a/web/apps/photos/src/components/TripLayout/TimelineLocation.tsx b/web/apps/photos/src/components/TripLayout/TimelineLocation.tsxindex 761bd6b58f..371a660523 100644--- a/web/apps/photos/src/components/TripLayout/TimelineLocation.tsx+++ b/web/apps/photos/src/components/TripLayout/TimelineLocation.tsx@@ -105,7 +105,7 @@ export const TimelineLocation = memo<TimelineLocationProps>(<LeftPhotoContainersx={{paddingRight:- cluster.length === 1 ? "40px" : "72px",+ cluster.length >= 3 ? "72px" : "40px",}}><PhotoFan