mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-09 07:47:27 +02:00
[#1989] fixed RecordInfo multiple files preview
This commit is contained in:
1 parent
42e288c71a
commit
af34eb544d
31 files changed
+121
-113
No files matched your search
@@ -35,9 +35,12 @@
|
||||
/>
|
||||
|
||||
{#each fileDisplayFields as name}
|
||||
{#if record[name]}
|
||||
<RecordFileThumb {record} filename={record[name]} size="xs" />
|
||||
{/if}
|
||||
{@const filenames = CommonHelper.toArray(record[name]).slice(0, 5)}
|
||||
{#each filenames as filename}
|
||||
{#if !CommonHelper.isEmpty(filename)}
|
||||
<RecordFileThumb {record} {filename} size="xs" />
|
||||
{/if}
|
||||
{/each}
|
||||
{/each}
|
||||
|
||||
<span class="txt txt-ellipsis">
|
||||
|
||||
Reference in new issue
Block a user