Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use dvh viewport units for proper mobile browser chrome handling

anandbaburajan9f671a7bc492
diff --git a/web/apps/share/src/components/file-share/FileShareView.tsx b/web/apps/share/src/components/file-share/FileShareView.tsx
index 8b83ef58ff..920d9e4716 100644
--- a/web/apps/share/src/components/file-share/FileShareView.tsx
+++ b/web/apps/share/src/components/file-share/FileShareView.tsx
@@ -26,7 +26,7 @@ export const FileShareView: React.FC = () => {
</Head>
<Box
sx={{
- minHeight: "100vh",
+ minHeight: "100dvh",
bgcolor: "#1071FF",
display: "flex",
flexDirection: "column",
@@ -38,8 +38,8 @@ export const FileShareView: React.FC = () => {
<Box
sx={{
minHeight: {
- xs: "calc(100vh - 16px)",
- md: "calc(100vh - 48px)",
+ xs: "calc(100dvh - 16px)",
+ md: "calc(100dvh - 48px)",
},
width: "100%",
bgcolor: "#FAFAFA",
@@ -95,7 +95,7 @@ export const FileShareView: React.FC = () => {
px: 3,
pb: 8,
mt: fileInfo?.lockerType
- ? { xs: 0, md: "20vh" }
+ ? { xs: 0, md: "20dvh" }
: 0,
}}
>