From 02a26bf70bd65230f54b4d33dabeb85ce2b909c2 Mon Sep 17 00:00:00 2001 From: Mauro Mura Date: Tue, 3 Feb 2026 10:08:38 +0100 Subject: [PATCH] Update VirtualList.vue --- apps/files/src/components/VirtualList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files/src/components/VirtualList.vue b/apps/files/src/components/VirtualList.vue index 4746fedf86396..7bf90c7c4e783 100644 --- a/apps/files/src/components/VirtualList.vue +++ b/apps/files/src/components/VirtualList.vue @@ -157,7 +157,7 @@ export default defineComponent({ itemHeight() { // Align with css in FilesListVirtual // 166px + 32px (name) + 16px (mtime) + 16px (padding top and bottom) - return this.gridMode ? (166 + 32 + 16 + 16 + 16) : 44 + return this.gridMode ? (166 + 32 + 16 + 16 + 16) : 68 }, // Grid mode only @@ -320,6 +320,8 @@ export default defineComponent({ methods: { scrollTo(index: number) { + return + if (!this.$el || this.index === index) { return }