[#1989] fixed RecordInfo multiple files preview

This commit is contained in:
Gani Georgiev
2023-03-06 13:33:15 +02:00
parent 42e288c71a
commit af34eb544d
31 changed files with 121 additions and 113 deletions
+6 -3
View File
@@ -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">