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()