This commit is contained in:
Manav Rathi
2025-02-06 08:01:40 +05:30
parent eee6705e11
commit 9fe36985d6

View File

@@ -391,9 +391,24 @@ const FileInfoSidebar = styled(
(props: Pick<DialogProps, "open" | "onClose" | "children">) => (
<SidebarDrawer {...props} anchor="right" />
),
)({
)(({ theme }) => ({
zIndex: fileInfoDrawerZ,
});
// [Note: Lighter backdrop for dialog contents on image gallery]
//
// The default backdrop color we use for the drawer in light mode is too
// "white" when used in the image gallery because unlike the rest of the app
// the gallery retains a black background irrespective of the mode. So use a
// lighter scrim when overlaying content directly atop the image gallery.
//
// We don't need to add this special casing for nested overlays (e.g.
// dialogs initiated from the file info drawer itself) since now there is
// enough "white" on the screen to warrant the stronger (default) backdrop.
...theme.applyStyles("light", {
".MuiBackdrop-root": {
backgroundColor: theme.vars.palette.backdrop.faint,
},
}),
}));
interface InfoItemProps {
/**