From 0e80c042fd57393b51b2a503c595d56d850bab6c Mon Sep 17 00:00:00 2001 From: kristian-zendato Date: Mon, 7 Sep 2026 16:32:58 +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 | 2 +- lib/composables/preview.spec.ts | 6 +- lib/composables/preview.ts | 56 ++++++++++++++++++- 6 files changed, 94 insertions(+), 19 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 55ce0d4ab..e230fd17a 100644 --- a/lib/components/FilePicker/FileList.vue +++ b/lib/components/FilePicker/FileList.vue @@ -233,8 +233,8 @@ const fileContainer = ref()