Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(AllPeople):height-issue-fixed

Aswin Asokb9f9d5fe9d86
diff --git a/web/apps/photos/src/components/Collections/AllPeople.tsx b/web/apps/photos/src/components/Collections/AllPeople.tsx
index 0962871151..f2dd136009 100644
--- a/web/apps/photos/src/components/Collections/AllPeople.tsx
+++ b/web/apps/photos/src/components/Collections/AllPeople.tsx
@@ -659,9 +659,10 @@ const AllPeopleContent: React.FC<AllPeopleContentProps> = ({
<DialogContent
sx={{
"&&": { padding: 0 },
- height: hasSearchQuery
- ? "80svh"
- : `min(80svh, ${listContentHeight}px)`,
+ height:
+ hasSearchQuery || items.length === 0
+ ? "80svh"
+ : `min(80svh, ${listContentHeight}px)`,
display: "flex",
flexDirection: "column",
}}