Fix attachment image preview ()

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-06-07 11:17:38 +06:00 committed by GitHub
parent bec400bfc8
commit 2ac3346073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 3 deletions
plugins
attachment-resources/src/components
gmail-resources/src/components
tracker-resources/src/components

View File

@ -93,7 +93,7 @@
<div class="content">
{#each docs as doc}
<div class="item">
<AttachmentPresenter value={doc} removable on:remove={() => remove(doc)} />
<AttachmentPresenter value={doc} showPreview removable on:remove={() => remove(doc)} />
</div>
{/each}
</div>

View File

@ -92,7 +92,7 @@
<div class="flex-row-center list mt-2">
{#each attachments as attachment}
<div class="item flex">
<AttachmentPresenter value={attachment} />
<AttachmentPresenter value={attachment} showPreview />
</div>
{/each}
</div>

View File

@ -59,7 +59,7 @@
<div class="flex-row-center list mt-2">
{#each attachments as attachment}
<div class="item flex">
<AttachmentPresenter value={attachment} />
<AttachmentPresenter value={attachment} showPreview />
</div>
{/each}
</div>

View File

@ -213,6 +213,7 @@
<div class="item flex-row-center flex-no-shrink">
<AttachmentPresenter
value={attachment}
showPreview
removable
on:remove={(result) => {
if (result !== undefined) removeAttachment(attachment)

View File

@ -324,6 +324,7 @@
<div class="item flex-row-center flex-no-shrink">
<AttachmentPresenter
value={attachment}
showPreview
removable
on:remove={(result) => {
if (result !== undefined) removeAttachment(attachment)

View File

@ -754,6 +754,7 @@
{#each Array.from(attachments.values()) as attachment}
<AttachmentPresenter
value={attachment}
showPreview
removable
on:remove={(result) => {
if (result.detail !== undefined) descriptionBox.removeAttachmentById(result.detail._id)