Skip to content

armgit / ente

Public Imported from GitHub
0

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

Set collection selector dialog to fixed height on desktop screens

anandbaburajanaab1780e11ac
diff --git a/web/packages/new/photos/components/CollectionSelector.tsx b/web/packages/new/photos/components/CollectionSelector.tsx
index 5f23662c65..013ea6aa08 100644
--- a/web/packages/new/photos/components/CollectionSelector.tsx
+++ b/web/packages/new/photos/components/CollectionSelector.tsx
@@ -212,7 +212,14 @@ export const CollectionSelector: React.FC<CollectionSelectorProps> = ({
onClose={handleClose}
fullWidth
fullScreen={isFullScreen}
- slotProps={{ paper: { sx: { maxWidth: "500px" } } }}
+ slotProps={{
+ paper: {
+ sx: {
+ maxWidth: "500px",
+ "@media (min-width: 491px)": { height: "100%" },
+ },
+ },
+ }}
>
<DialogTitle>
<Stack sx={{ gap: 1.5 }}>