From 6d842fd1e2666c8cf5249b5ce757fc70a4efe1bb Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 6 Feb 2025 10:20:28 +0530 Subject: [PATCH] const --- .../new/photos/components/PhotoDateTimePicker.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 = ({ }, }, }, + /* 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 } }, }} />