Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: desktop photo fan hover

anandbaburajanb47e68b90682
diff --git a/web/apps/photos/src/components/TripTemplate/PhotoFan.tsx b/web/apps/photos/src/components/TripTemplate/PhotoFan.tsx
index 71232e1e24..f00145d1b5 100644
--- a/web/apps/photos/src/components/TripTemplate/PhotoFan.tsx
+++ b/web/apps/photos/src/components/TripTemplate/PhotoFan.tsx
@@ -122,11 +122,18 @@ export const PhotoFan = memo<PhotoFanProps>(({ cluster, onPhotoClick }) => {
});
// Styled components
-const PhotoFanContainer = styled(Box)({
+const PhotoFanContainer = styled(Box)(({ theme }) => ({
position: "relative",
width: "180px",
height: "240px",
-});
+ [theme.breakpoints.up("md")]: {
+ transition: "transform 0.3s ease-in-out",
+ cursor: "pointer",
+ "&:hover": {
+ transform: "scale(1.05)",
+ },
+ },
+}));
const PhotoFrame = styled(Box)(() => ({
position: "absolute",