Skip to content

armgit / ente

Public Imported from GitHub
0

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

Sidebar 1

Manav Rathi6f7e56e7961b
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
index 838cf5b374..16cfc10345 100644
--- a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
@@ -393,9 +393,6 @@ const FileInfoSidebar = styled(
),
)({
zIndex: fileInfoDrawerZIndex,
- "& .MuiPaper-root": {
- padding: 8,
- },
});
interface InfoItemProps {
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index b7be986181..1001fabc81 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -10,6 +10,7 @@ import {
type DrawerProps,
} from "@mui/material";
import React from "react";
+import { isDesktop } from "../../app";
import type { ModalVisibilityProps } from "../utils/modal";
/**
@@ -25,6 +26,11 @@ export const SidebarDrawer = styled(Drawer)(({ theme }) => ({
width: "100%",
scrollbarWidth: "thin",
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" } : {}),
},
}));