aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/VirtualList.vue
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-07-22 17:35:27 +0200
committerLouis Chemineau <louis@chmn.me>2024-07-24 09:38:51 +0200
commit1aeb3f328bf0957ea9dace87a47b6b50d45d43df (patch)
treee93746e2829e53da8c2788950beab6f2b450e54b /apps/files/src/components/VirtualList.vue
parentddad7b48eb567bd799efbc734040f6ed103050f4 (diff)
downloadnextcloud-server-1aeb3f328bf0957ea9dace87a47b6b50d45d43df.tar.gz
nextcloud-server-1aeb3f328bf0957ea9dace87a47b6b50d45d43df.zip
fix(files): Grid view virtual scrolling computations
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files/src/components/VirtualList.vue')
-rw-r--r--apps/files/src/components/VirtualList.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/src/components/VirtualList.vue b/apps/files/src/components/VirtualList.vue
index be7b21fc299..daf021e8ed5 100644
--- a/apps/files/src/components/VirtualList.vue
+++ b/apps/files/src/components/VirtualList.vue
@@ -131,13 +131,13 @@ export default Vue.extend({
itemHeight() {
// Align with css in FilesListVirtual
- // 166px + 32px (name) + 16px (mtime) + 16px (padding) + 22px (grid gap)
- return this.gridMode ? (166 + 32 + 16 + 16 + 22) : 55
+ // 166px + 32px (name) + 16px (mtime) + 16px (padding)
+ return this.gridMode ? (166 + 32 + 16 + 16) : 55
},
// Grid mode only
itemWidth() {
- // 166px + 16px padding + 22px grid gap
- return 166 + 16 + 22
+ // 166px + 16px padding
+ return 166 + 16
},
rowCount() {