From 4876eacf3fee0f4bbbaa70f924e5429133f1d1bd Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 17 Oct 2023 19:03:48 -0700 Subject: [PATCH 1/2] perf(files): performance optimizations Signed-off-by: Varun Patil --- .../components/FileEntry/FileEntryActions.vue | 11 +++++++---- .../components/FileEntry/FileEntryPreview.vue | 8 ++++---- apps/files/src/components/FilesListVirtual.vue | 4 ++++ apps/files/src/components/VirtualList.vue | 17 ++++++++++------- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue index bcb4abef10fd4..404936f485b6b 100644 --- a/apps/files/src/components/FileEntry/FileEntryActions.vue +++ b/apps/files/src/components/FileEntry/FileEntryActions.vue @@ -35,8 +35,8 @@ table.files-list') }, + }, + methods: { actionDisplayName(action: FileAction) { if (this.filesListWidth < 768 && action.inline && typeof action.title === 'function') { // if an inline action is rendered in the menu for diff --git a/apps/files/src/components/FileEntry/FileEntryPreview.vue b/apps/files/src/components/FileEntry/FileEntryPreview.vue index 076319428e500..8a7af255ec278 100644 --- a/apps/files/src/components/FileEntry/FileEntryPreview.vue +++ b/apps/files/src/components/FileEntry/FileEntryPreview.vue @@ -22,9 +22,9 @@