Tweak visually

This commit is contained in:
Manav Rathi
2025-05-28 16:19:02 +05:30
parent 5171518d9b
commit da0d9dfdab
2 changed files with 6 additions and 3 deletions

View File

@@ -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>
);

View File

@@ -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 (