Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix height

Manav Rathi62222b0228ee
diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsx
index b39992fa62..5bd0845144 100644
--- a/web/packages/gallery/components/viewer/FileViewer.tsx
+++ b/web/packages/gallery/components/viewer/FileViewer.tsx
@@ -593,6 +593,12 @@ const MoreMenu = styled(Menu)`
const MoreMenuItem = styled(MenuItem)`
min-width: 190px;
+ /* MUI MenuItem default implementation has a minHeight of "48px" below the
+ "sm" breakpoint, and auto after it. We always want the same height, so
+ use an explicit padding to have minHeight "auto" also come out to 48px
+ (20px (icon or Typography height + 14 + 14) */
+ padding-block: 14px;
+
gap: 1;
justify-content: space-between;
align-items: center;