Skip to content

armgit / ente

Public Imported from GitHub
0

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

Multiline titles

Manav Rathicdf761d46bc4
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx
index 65696794cb..d22ef62200 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -227,7 +227,14 @@ export const AttributedMiniDialog: React.FC<
}}
>
{attributes.title && (
- <DialogTitle sx={{ "&&&": { padding: 0 } }}>
+ <DialogTitle
+ sx={{
+ "&&&": { padding: 0 },
+ // Wrap the title to the next line if there
+ // isn't sufficient space to make it fit in one.
+ flexShrink: 1,
+ }}
+ >
{attributes.title}
</DialogTitle>
)}