Skip to content

armgit / ente

Public Imported from GitHub
0

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

Set all albums dialog height to constant 80svh

anandbaburajand990f1c3bbd9
diff --git a/web/apps/photos/src/components/Collections/AllAlbums.tsx b/web/apps/photos/src/components/Collections/AllAlbums.tsx
index 5ff44072af..85cfc0c228 100644
--- a/web/apps/photos/src/components/Collections/AllAlbums.tsx
+++ b/web/apps/photos/src/components/Collections/AllAlbums.tsx
@@ -306,10 +306,6 @@ const AllAlbumsContent: React.FC<AllAlbumsContentProps> = ({
>([]);
const columns = isTwoColumn ? 2 : 3;
- const maxListContentHeight =
- Math.ceil(collectionSummaries.length / columns) *
- CollectionRowItemSize +
- 32; /* padding above first and below last row */
useEffect(() => {
const main = () => {
@@ -371,13 +367,8 @@ const AllAlbumsContent: React.FC<AllAlbumsContentProps> = ({
<DialogContent
sx={{
"&&": { padding: 0 },
- height: "min(80svh, var(--et-max-list-content-height))",
+ height: "80svh",
}}
- style={
- {
- "--et-max-list-content-height": `${maxListContentHeight}px`,
- } as React.CSSProperties
- }
>
<AutoSizer>
{({ width, height }) => (