Skip to content

armgit / ente

Public Imported from GitHub
0

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

Don't rely on container

Manav Rathi5311714bff37
diff --git a/web/apps/photos/src/components/Sidebar/MapSetting.tsx b/web/apps/photos/src/components/Sidebar/MapSetting.tsx
index 30ff892d29..5bd77b42ad 100644
--- a/web/apps/photos/src/components/Sidebar/MapSetting.tsx
+++ b/web/apps/photos/src/components/Sidebar/MapSetting.tsx
@@ -1,6 +1,7 @@
import { MenuItemGroup } from "@/base/components/Menu";
import {
NestedSidebarDrawer,
+ SidebarDrawerTitlebar,
type NestedSidebarDrawerVisibilityProps,
} from "@/base/components/mui/SidebarDrawer";
import { Titlebar } from "@/base/components/Titlebar";
@@ -46,7 +47,7 @@ export const MapSettings: React.FC<NestedSidebarDrawerVisibilityProps> = ({
onRootClose={handleRootClose}
>
<Stack spacing={"4px"} py={"12px"}>
- <Titlebar
+ <SidebarDrawerTitlebar
onClose={onClose}
title={t("map")}
onRootClose={handleRootClose}
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index a6569f01dd..19a81bfbc9 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -1,4 +1,4 @@
-import { Drawer, styled, type DrawerProps } from "@mui/material";
+import { Drawer, Stack, styled, type DrawerProps } from "@mui/material";
import type { ModalVisibilityProps } from "../utils/modal";
/**
@@ -108,7 +108,7 @@ export const SidebarDrawerTitlebar: React.FC<SidebarDrawerTitlebarProps> = ({
actionButton,
}) => {
return (
- <>
+ <Stack sx={{ gap: "4px" }}>
<FlexWrapper
height={48}
alignItems={"center"}
@@ -136,6 +136,6 @@ export const SidebarDrawerTitlebar: React.FC<SidebarDrawerTitlebarProps> = ({
{caption}
</Typography>
</Box>
- </>
+ </Stack>
);
};