Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Reserve scrollbar space in duplicates grid

AswinAsok04f80b3d00f4
diff --git a/web/apps/photos/src/components/gallery/DuplicatesView.tsx b/web/apps/photos/src/components/gallery/DuplicatesView.tsx
index ef620c8dec..519ec45db0 100644
--- a/web/apps/photos/src/components/gallery/DuplicatesView.tsx
+++ b/web/apps/photos/src/components/gallery/DuplicatesView.tsx
@@ -454,7 +454,12 @@ const DuplicatesList: React.FC<DuplicatesListProps> = ({
duplicateGroups,
onToggleSelection,
}) => {
- const columns = Math.max(1, Math.floor((width + 10) / 142));
+ // Leave room for a conventional scrollbar and some space beside the tiles.
+ const scrollbarAllowance = 24;
+ const columns = Math.max(
+ 1,
+ Math.floor((width - scrollbarAllowance + 10) / 142),
+ );
return (
<VariableSizeList
// Invalidate cached heights when groups are reordered or wrap differently.