Skip to content

armgit / ente

Public Imported from GitHub
0

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

Tweak visually

Manav Rathida0d9dfdab41
diff --git a/web/packages/base/components/mui/SidebarDrawer.tsx b/web/packages/base/components/mui/SidebarDrawer.tsx
index 5baa666d45..d77950ebde 100644
--- a/web/packages/base/components/mui/SidebarDrawer.tsx
+++ b/web/packages/base/components/mui/SidebarDrawer.tsx
@@ -164,19 +164,20 @@ export const SidebarDrawerTitlebar: React.FC<SidebarDrawerTitlebarProps> = ({
</IconButton>
</Stack>
</Stack>
- <Box sx={{ px: "16px", py: "4px" }}>
+ <Stack sx={{ px: "16px", gap: "4px" }}>
<Typography variant="h3">{title}</Typography>
<Typography
variant="small"
sx={{
color: "text.muted",
wordBreak: "break-all",
+ px: "1px",
minHeight: "17px",
}}
>
{caption}
</Typography>
- </Box>
+ </Stack>
</Stack>
);
diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx
index 5f32c37bdb..1ac6f85612 100644
--- a/web/packages/gallery/components/FileInfo.tsx
+++ b/web/packages/gallery/components/FileInfo.tsx
@@ -599,7 +599,9 @@ const Caption: React.FC<CaptionProps> = ({
const { values, errors, handleChange, handleSubmit, resetForm } = formik;
if (!caption.length && !allowEdits) {
- return <></>;
+ // Visually take up some space, otherwise the info panel for the shared
+ // photos without a caption looks squished at the top.
+ return <Box sx={{ minHeight: 2 }}></Box>;
}
return (