Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add the customization

Manav Rathi299363c8c44f
diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
index daba7801d5..eed436d312 100644
--- a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx
@@ -393,7 +393,7 @@ const FileInfoSidebar = styled(
),
)(({ theme }) => ({
zIndex: fileInfoDrawerZ,
- // [Note: Lighter backdrop for dialog contents on image gallery]
+ // [Note: Lighter backdrop for overlays on photo viewer]
//
// 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
diff --git a/web/packages/new/photos/components/PhotoViewer.tsx b/web/packages/new/photos/components/PhotoViewer.tsx
index 2ea1a63413..4455295766 100644
--- a/web/packages/new/photos/components/PhotoViewer.tsx
+++ b/web/packages/new/photos/components/PhotoViewer.tsx
@@ -1,6 +1,7 @@
import { TitledMiniDialog } from "@/base/components/MiniDialog";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import type { ModalVisibilityProps } from "@/base/components/utils/modal";
+import { t } from "i18next";
import { aboveGalleryContentZ } from "./utils/z-index";
// const confirmTrashFile = (file: EnteFile) => {
@@ -8,7 +9,7 @@ import { aboveGalleryContentZ } from "./utils/z-index";
// return;
// }
// showMiniDialog({
-// title: t("trash_file_title"),
+//
// message: t("trash_file_message"),
// continue: {
// text: t("move_to_trash"),
@@ -41,7 +42,16 @@ export const ConfirmDeleteFileDialog: React.FC<
> = ({ onConfirm, ...visibilityProps }) => (
<TitledMiniDialog
{...visibilityProps}
- sx={{ zIndex: aboveGalleryContentZ }}
+ title={t("trash_file_title")}
+ sx={(theme) => ({
+ zIndex: aboveGalleryContentZ,
+ // See: [Note: Lighter backdrop for overlays on photo viewer]
+ ...theme.applyStyles("light", {
+ ".MuiBackdrop-root": {
+ backgroundColor: theme.vars.palette.backdrop.faint,
+ },
+ }),
+ })}
>
<FocusVisibleButton fullWidth onClick={onConfirm}>
{"Test"}