Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix ellipsis

Manav Rathi1a01d759b08d
diff --git a/web/apps/photos/src/components/Export.tsx b/web/apps/photos/src/components/Export.tsx
index 676f3a1e53..4e003824a8 100644
--- a/web/apps/photos/src/components/Export.tsx
+++ b/web/apps/photos/src/components/Export.tsx
@@ -616,12 +616,20 @@ const ExportPendingListItem: React.FC<
return (
<div style={style}>
<Stack direction="row" sx={{ gap: 1 }}>
- <ItemCard
- key={file.id}
- TileComponent={PreviewItemTile}
- coverFile={file}
- />
- <Stack>
+ <Box sx={{ flexShrink: 0 }}>
+ <ItemCard
+ key={file.id}
+ TileComponent={PreviewItemTile}
+ coverFile={file}
+ />
+ </Box>
+ <Stack
+ sx={{
+ // We need to set overflow hidden on the containing
+ // stack for the EllipsizedTypography to kick in.
+ overflow: "hidden",
+ }}
+ >
<Tooltip title={fileName}>
<EllipsizedTypography>{fileName}</EllipsizedTypography>
</Tooltip>