From 7f75f7c5b20bd419031bac9ae71af2b89e82aa53 Mon Sep 17 00:00:00 2001 From: kristian-zendato Date: Wed, 26 Aug 2026 09:12:50 +0000 Subject: [PATCH] feat: customize file picker icon size Signed-off-by: kristian-zendato --- lib/components/FilePicker/FileList.scss | 3 +- lib/components/FilePicker/FileList.vue | 6 +-- .../FilePicker/FileListIcon.module.scss | 40 +++++++++++++----- lib/components/FilePicker/FilePreview.vue | 8 ++-- lib/composables/preview.ts | 42 +++++++++++++++++-- 5 files changed, 76 insertions(+), 23 deletions(-) diff --git a/lib/components/FilePicker/FileList.scss b/lib/components/FilePicker/FileList.scss index 9088288ce..7a1259545 100644 --- a/lib/components/FilePicker/FileList.scss +++ b/lib/components/FilePicker/FileList.scss @@ -3,7 +3,8 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ tr.file-picker__row { - height: var(--row-height, 50px); + // 18px vertical padding around the preview (50px at the default 32px icon size) + height: var(--row-height, calc(var(--file-picker-preview-size, 32px) + 18px)); td { cursor: pointer; diff --git a/lib/components/FilePicker/FileList.vue b/lib/components/FilePicker/FileList.vue index d0300bdea..7a0880e00 100644 --- a/lib/components/FilePicker/FileList.vue +++ b/lib/components/FilePicker/FileList.vue @@ -258,8 +258,8 @@ const fileContainer = ref()