Skip to content

armgit / ente

Public Imported from GitHub
0

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

const

Manav Rathi6d842fd1e266
diff --git a/web/packages/new/photos/components/PhotoDateTimePicker.tsx b/web/packages/new/photos/components/PhotoDateTimePicker.tsx
index a2dabd4cae..e035ba11c4 100644
--- a/web/packages/new/photos/components/PhotoDateTimePicker.tsx
+++ b/web/packages/new/photos/components/PhotoDateTimePicker.tsx
@@ -6,7 +6,7 @@ import {
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import dayjs, { Dayjs } from "dayjs";
import React, { useState } from "react";
-import { fileInfoDrawerZ } from "./utils/z-index";
+import { aboveFileViewerContentZ } from "./utils/z-index";
interface PhotoDateTimePickerProps {
/**
@@ -100,14 +100,11 @@ export const PhotoDateTimePicker: React.FC<PhotoDateTimePickerProps> = ({
},
},
},
+
/* We also get opened from the info drawer in the photo
viewer, so give our dialog a higher z-index than both the
photo viewer and the info drawer */
- dialog: {
- sx: {
- zIndex: fileInfoDrawerZ + 1,
- },
- },
+ dialog: { sx: { zIndex: aboveFileViewerContentZ } },
}}
/>
</LocalizationProvider>