diff --git a/plugins/chunter-resources/src/components/AttachmentPopup.svelte b/plugins/chunter-resources/src/components/AttachmentPopup.svelte index c765d21ea5..ced1a6ae21 100644 --- a/plugins/chunter-resources/src/components/AttachmentPopup.svelte +++ b/plugins/chunter-resources/src/components/AttachmentPopup.svelte @@ -32,12 +32,12 @@ {#each Object.values(files) as file} - + { + closeTooltip() + showPopup(PDFViewer, { file: file.file }, 'right') + }}>
pdf
-
{ - closeTooltip() - showPopup(PDFViewer, { file: file.file }, 'right') - }}> +
{trimFilename(file.name)}
{file.type}
@@ -66,7 +66,7 @@ &:first-child { border-top: none; } } - .item { padding: .75rem 1rem .75rem 0; } + .item { padding: .75rem 1rem .75rem 0; cursor: pointer; } .file-icon { margin-right: 1.25rem; width: 2rem; diff --git a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte index 357774d77a..94905e1e7f 100644 --- a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte +++ b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte @@ -17,7 +17,7 @@ -{#if Object.keys(value.attachments).length === 1} + + +{#if Object.keys(value.attachments).length > 0} + +
+  {Object.keys(value.attachments).length} +
+
{/if}