Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix all albums dialog height when search has no results

anandbaburajan284b0e402990
diff --git a/web/apps/photos/src/components/Collections/AllAlbums.tsx b/web/apps/photos/src/components/Collections/AllAlbums.tsx
index 85cfc0c228..8ee2ca377f 100644
--- a/web/apps/photos/src/components/Collections/AllAlbums.tsx
+++ b/web/apps/photos/src/components/Collections/AllAlbums.tsx
@@ -346,13 +346,17 @@ const AllAlbumsContent: React.FC<AllAlbumsContentProps> = ({
// Show "no results" message if there's a search query but no results
if (hasSearchQuery && collectionSummaries.length === 0) {
return (
- <DialogContent>
+ <DialogContent
+ sx={{
+ height: "80svh",
+ }}
+ >
<Box
sx={{
display: "flex",
justifyContent: "center",
alignItems: "center",
- minHeight: `${CollectionRowItemSize}px`,
+ height: "100%",
}}
>
<Typography color="text.muted">