This commit is contained in:
Manav Rathi
2025-02-06 07:45:03 +05:30
parent 719ac8539b
commit eee6705e11
6 changed files with 11 additions and 11 deletions

View File

@@ -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<AlbumCastDialogProps> = ({
open={open}
onClose={onClose}
title={t("cast_album_to_tv")}
sx={{ zIndex: photosDialogZ }}
sx={{ zIndex: aboveGalleryContentZ }}
>
{view == "choose" && (
<Stack sx={{ py: 1, gap: 4 }}>

View File

@@ -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<FilesDownloadProgressProps> = ({
horizontal="left"
sx={{
"&&": { bottom: `${index * 80 + 20}px` },
zIndex: photosDialogZ,
zIndex: aboveGalleryContentZ,
}}
open={isFilesDownloadStarted(attributes)}
onClose={handleClose(attributes)}

View File

@@ -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 (
<TitledMiniDialog
sx={{ zIndex: photosDialogZ }}
sx={{ zIndex: aboveGalleryContentZ }}
open={isInEditMode}
onClose={closeEditMode}
title={t("rename_file")}

View File

@@ -12,7 +12,7 @@ import log from "@/base/log";
import { downloadAndRevokeObjectURL } from "@/base/utils/web";
import { downloadManager } from "@/gallery/services/download";
import { EnteFile } from "@/media/file";
import { photosDialogZ } from "@/new/photos/components/utils/z-index";
import { aboveGalleryContentZ } from "@/new/photos/components/utils/z-index";
import { getLocalCollections } from "@/new/photos/services/collections";
import { AppContext } from "@/new/photos/types/context";
import { CenteredFlex } from "@ente/shared/components/Container";
@@ -525,7 +525,7 @@ export const ImageEditorOverlay: React.FC<ImageEditorOverlayProps> = (
<Backdrop
sx={{
backgroundColor: "background.default" /* Opaque */,
zIndex: photosDialogZ,
zIndex: aboveGalleryContentZ,
width: "100%",
}}
open

View File

@@ -31,7 +31,7 @@ import {
updateReadyToInstallDialogAttributes,
} from "@/new/photos/components/utils/download";
import { useLoadingBar } from "@/new/photos/components/utils/use-loading-bar";
import { photosDialogZ } from "@/new/photos/components/utils/z-index";
import { aboveGalleryContentZ } from "@/new/photos/components/utils/z-index";
import { runMigrations } from "@/new/photos/services/migration";
import { initML, isMLSupported } from "@/new/photos/services/ml";
import { getFamilyPortalRedirectURL } from "@/new/photos/services/user-details";
@@ -186,7 +186,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
<ThemedLoadingBar ref={loadingBarRef} />
<AttributedMiniDialog
sx={{ zIndex: photosDialogZ }}
sx={{ zIndex: aboveGalleryContentZ }}
{...miniDialogProps}
/>

View File

@@ -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;