Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Keep cast dialog width compact

AswinAsok80a71f4a654b
diff --git a/web/apps/photos/src/components/collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/collections/AlbumCastDialog.tsx
index 7e1eaa3aac..3bf7c29406 100644
--- a/web/apps/photos/src/components/collections/AlbumCastDialog.tsx
+++ b/web/apps/photos/src/components/collections/AlbumCastDialog.tsx
@@ -29,6 +29,7 @@ import {
type SingleInputFormProps,
} from "ente-base/components/SingleInputForm";
import type { ModalVisibilityProps } from "ente-base/components/utils/modal";
+import { isSxArray } from "ente-base/components/utils/sx";
import { isNamedError } from "ente-base/error";
import { ut } from "ente-base/i18n";
import log from "ente-base/log";
@@ -56,10 +57,10 @@ export const AlbumCastDialog: React.FC<AlbumCastDialogProps> = ({
slotProps={{
paper: {
sx: [
- v2PaperSx,
+ ...(isSxArray(v2PaperSx) ? v2PaperSx : [v2PaperSx]),
{
- width: "min(640px, calc(100svw - 32px))",
- maxWidth: "640px",
+ width: "min(560px, calc(100svw - 32px))",
+ maxWidth: "560px",
},
],
},