diff --git a/plugins/attachment-resources/src/components/AttachmentActions.svelte b/plugins/attachment-resources/src/components/AttachmentActions.svelte index f5ab9ae83d..e61acd9828 100644 --- a/plugins/attachment-resources/src/components/AttachmentActions.svelte +++ b/plugins/attachment-resources/src/components/AttachmentActions.svelte @@ -15,7 +15,7 @@ -
- - +
+ + {}} />
- - diff --git a/plugins/attachment-resources/src/components/AttachmentList.svelte b/plugins/attachment-resources/src/components/AttachmentList.svelte index ab6ffbd6a3..1d1d4ad9b2 100644 --- a/plugins/attachment-resources/src/components/AttachmentList.svelte +++ b/plugins/attachment-resources/src/components/AttachmentList.svelte @@ -22,17 +22,11 @@ {#if attachments.length} -
+
{#each attachments as attachment} -
+
{/each}
{/if} - - diff --git a/plugins/attachment-resources/src/components/AttachmentPreview.svelte b/plugins/attachment-resources/src/components/AttachmentPreview.svelte index 57a9ac2655..b08b11172b 100644 --- a/plugins/attachment-resources/src/components/AttachmentPreview.svelte +++ b/plugins/attachment-resources/src/components/AttachmentPreview.svelte @@ -28,63 +28,81 @@ $: type = getType(value.type) -
- {#if type === 'image'} -
{ - closeTooltip() - showPopup(PDFViewer, { file: value.file, name: value.name, contentType: value.type }, 'right') - }} - > - {value.name} -
- -
+{#if type === 'image'} +
{ + closeTooltip() + showPopup(PDFViewer, { file: value.file, name: value.name, contentType: value.type }, 'right') + }} + > + {value.name} +
+
- {:else if type === 'audio'} -
- -
- -
+
+{:else if type === 'audio'} +
+ +
+
- {:else if type === 'video'} -
- -
- +
+{:else if type === 'video'} +
+ +
+
- {:else} -
- -
- -
+
+{:else} +
+ +
+
- {/if} -
+
+{/if}