From eee6705e11394abd73f8a1ef33b9993891590693 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 6 Feb 2025 07:45:03 +0530 Subject: [PATCH] Rename --- .../photos/src/components/Collections/AlbumCastDialog.tsx | 4 ++-- web/apps/photos/src/components/FilesDownloadProgress.tsx | 4 ++-- web/apps/photos/src/components/PhotoViewer/FileInfo.tsx | 4 ++-- .../photos/src/components/PhotoViewer/ImageEditorOverlay.tsx | 4 ++-- web/apps/photos/src/pages/_app.tsx | 4 ++-- web/packages/new/photos/components/utils/z-index.tsx | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx index be7d6441d4..4f74d5699d 100644 --- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx +++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx @@ -4,7 +4,7 @@ import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton"; import log from "@/base/log"; import type { Collection } from "@/media/collection"; import { useSettingsSnapshot } from "@/new/photos/components/utils/use-snapshot"; -import { photosDialogZ } from "@/new/photos/components/utils/z-index"; +import { aboveGalleryContentZ } from "@/new/photos/components/utils/z-index"; import { publishCastPayload, revokeAllCastTokens, @@ -134,7 +134,7 @@ export const AlbumCastDialog: React.FC = ({ open={open} onClose={onClose} title={t("cast_album_to_tv")} - sx={{ zIndex: photosDialogZ }} + sx={{ zIndex: aboveGalleryContentZ }} > {view == "choose" && ( diff --git a/web/apps/photos/src/components/FilesDownloadProgress.tsx b/web/apps/photos/src/components/FilesDownloadProgress.tsx index 89361ad8e0..ae53eee4f8 100644 --- a/web/apps/photos/src/components/FilesDownloadProgress.tsx +++ b/web/apps/photos/src/components/FilesDownloadProgress.tsx @@ -1,5 +1,5 @@ import { Notification } from "@/new/photos/components/Notification"; -import { photosDialogZ } from "@/new/photos/components/utils/z-index"; +import { aboveGalleryContentZ } from "@/new/photos/components/utils/z-index"; import { useAppContext } from "@/new/photos/types/context"; import { t } from "i18next"; import { GalleryContext } from "pages/gallery"; @@ -120,7 +120,7 @@ export const FilesDownloadProgress: React.FC = ({ horizontal="left" sx={{ "&&": { bottom: `${index * 80 + 20}px` }, - zIndex: photosDialogZ, + zIndex: aboveGalleryContentZ, }} open={isFilesDownloadStarted(attributes)} onClose={handleClose(attributes)} diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx index 525461be5c..a1fd51e182 100644 --- a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx +++ b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx @@ -29,8 +29,8 @@ import { } from "@/new/photos/components/utils/dialog"; import { useSettingsSnapshot } from "@/new/photos/components/utils/use-snapshot"; import { + aboveGalleryContentZ, fileInfoDrawerZ, - photosDialogZ, } from "@/new/photos/components/utils/z-index"; import { tagNumericValue, type RawExifTags } from "@/new/photos/services/exif"; import { @@ -801,7 +801,7 @@ const FileNameEditDialog = ({ }; return ( = ( = ({ Component, pageProps }) => { diff --git a/web/packages/new/photos/components/utils/z-index.tsx b/web/packages/new/photos/components/utils/z-index.tsx index 45df7c0d27..bf6190824c 100644 --- a/web/packages/new/photos/components/utils/z-index.tsx +++ b/web/packages/new/photos/components/utils/z-index.tsx @@ -36,4 +36,4 @@ export const fileInfoDrawerZ = photoSwipeZ + 1; * are visible above the drawer in case they are shown in response to some * action taken in the file info drawer. */ -export const photosDialogZ = 1600; +export const aboveGalleryContentZ = fileInfoDrawerZ + 1;