diff --git a/apps/files/src/components/VirtualList.vue b/apps/files/src/components/VirtualList.vue index e84cf4a0b0eb5..d3044792ed9dc 100644 --- a/apps/files/src/components/VirtualList.vue +++ b/apps/files/src/components/VirtualList.vue @@ -168,7 +168,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 @@ -332,6 +332,8 @@ export default defineComponent({ methods: { scrollTo(index: number) { + return + if (!this.$el || this.index === index) { return }