Skip to content

armgit / ente

Public Imported from GitHub
0

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

Calc

Manav Rathi12e441a27be7
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index 1001fabc81..8d87180b8e 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -28,9 +28,9 @@ export const SidebarDrawer = styled(Drawer)(({ theme }) => ({
padding: theme.spacing(1),
// Add extra padding on the top to account for our inline title bar.
// See: [Note: Customize the desktop title bar]
- //
- // The specific constant is just something which looks okay-ish.
- ...(isDesktop ? { paddingTop: "14px" } : {}),
+ ...(isDesktop
+ ? { paddingTop: "calc(env(titlebar-area-height) / 2 + 4px)" }
+ : {}),
},
}));