diff --git a/ui/src/components/records/RecordFieldValue.svelte b/ui/src/components/records/RecordFieldValue.svelte index 508fb44e..aa097879 100644 --- a/ui/src/components/records/RecordFieldValue.svelte +++ b/ui/src/components/records/RecordFieldValue.svelte @@ -102,10 +102,15 @@ {/if} {:else if field.type === "file"} + {@const files = CommonHelper.toArray(rawValue)} + {@const filesLimit = short ? 10 : 200}
- {#each CommonHelper.toArray(rawValue) as filename, i (i + filename)} + {#each files.slice(0, filesLimit) as filename, i (i + filename)} {/each} + {#if files.length > filesLimit} + ... + {/if}
{:else if short}