Skip to content

armgit / ente

Public Imported from GitHub
0

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

New pathway

Manav Rathiec532ad2ac23
diff --git a/web/apps/photos/src/components/FileList.tsx b/web/apps/photos/src/components/FileList.tsx
index 61473c288e..f00acdb2b6 100644
--- a/web/apps/photos/src/components/FileList.tsx
+++ b/web/apps/photos/src/components/FileList.tsx
@@ -84,6 +84,18 @@ type FileListItem = {
* behaviour.
*/
tag?: "date" | "file" | "span";
+ /**
+ * Groups of items that are shown in the row.
+ *
+ * Each group spans multiple columns (the number of columns being given by
+ * the length of {@link annotatedFiles} or the {@link span}). Groups are
+ * separated by gaps.
+ */
+ fGroups?: {
+ annotatedFiles: FileListAnnotatedFile[];
+ annotatedFilesStartIndex: number;
+ }[];
+ dGroups?: { date: string; span: number }[];
items?: FileListAnnotatedFile[];
itemStartIndex?: number;
date?: string | null;
@@ -319,10 +331,11 @@ export const FileList: React.FC<FileListProps> = ({
});
}
}
+ if (!isSmallerLayout) {
+ items = mergeRowsWherePossible(items, columns);
+ }
}
- if (!isSmallerLayout) items = mergeRowsWherePossible(items, columns);
-
if (!annotatedFiles.length) {
items.push({
height: height - 48,