Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix memory viewer sizing to properly constrain images and videos

AmanRajSinghMouryae2324b957e75
diff --git a/web/apps/memories/src/pages/index.tsx b/web/apps/memories/src/pages/index.tsx
index fd10f9d303..06e3eb54b3 100644
--- a/web/apps/memories/src/pages/index.tsx
+++ b/web/apps/memories/src/pages/index.tsx
@@ -575,7 +575,7 @@ const PhotoImage: React.FC<PhotoImageProps> = ({
style={{
display: "block",
maxWidth: "100%",
- maxHeight: "100%",
+ maxHeight: "calc(100vh - 220px)",
objectFit: "contain",
userSelect: "none",
pointerEvents: "none",
@@ -767,7 +767,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
style={{
display: "block",
maxWidth: "100%",
- maxHeight: "100%",
+ maxHeight: "calc(100vh - 220px)",
objectFit: "contain",
userSelect: "none",
}}
@@ -787,7 +787,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
style={{
display: "block",
maxWidth: "100%",
- maxHeight: "100%",
+ maxHeight: "calc(100vh - 220px)",
objectFit: "contain",
userSelect: "none",
}}
@@ -801,7 +801,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
style={{
display: "block",
maxWidth: "100%",
- maxHeight: "100%",
+ maxHeight: "calc(100vh - 220px)",
objectFit: "contain",
userSelect: "none",
pointerEvents: "none",