Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use same as choice modal

Manav Rathi4a1db1edccf2
diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsx
index c35085ee16..d7e4bde401 100644
--- a/web/packages/new/photos/components/CollectionSelector.tsx
+++ b/web/packages/new/photos/components/CollectionSelector.tsx
@@ -164,11 +164,12 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
};
return (
- <Dialog_
+ <Dialog
open={open}
onClose={handleClose}
fullWidth
fullScreen={isFullScreen}
+ PaperProps={{ sx: { maxWidth: "494px" } }}
>
<SpaceBetweenFlex sx={{ padding: "10px 8px 9px 0" }}>
<DialogTitle variant="h3" fontWeight={"bold"}>
@@ -189,16 +190,10 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
))}
</FlexWrapper>
</DialogContent>
- </Dialog_>
+ </Dialog>
);
};
-const Dialog_ = styled(Dialog)`
- & .MuiPaper-root {
- max-width: 494px;
- }
-`;
-
const dialogTitleForAction = (action: CollectionSelectorAction) => {
switch (action) {
case "upload":