From 543e7616f8d25ff518c9bae6de8b508529336f06 Mon Sep 17 00:00:00 2001 From: Anna No Date: Wed, 13 Apr 2022 10:44:13 +0700 Subject: [PATCH] Fix AddAttachment control Signed-off-by: Anna No --- .../src/components/AddAttachment.svelte | 4 +- .../src/components/KanbanCard.svelte | 59 +++++++++---------- .../components/editor/CardAttachments.svelte | 4 +- 3 files changed, 33 insertions(+), 34 deletions(-) diff --git a/plugins/attachment-resources/src/components/AddAttachment.svelte b/plugins/attachment-resources/src/components/AddAttachment.svelte index 32811da319..979b1e70fa 100644 --- a/plugins/attachment-resources/src/components/AddAttachment.svelte +++ b/plugins/attachment-resources/src/components/AddAttachment.svelte @@ -31,9 +31,7 @@
{#if $$slots.control} -
- -
+ {:else}
-
-
-
{object.title}
-
-
-
- +
+
+
{object.title}
+
+
+
+ +
+ { + showMenu(evt) + }} + icon={IconMoreH} + size="small" /> +
+
+
+
+ {#if (object.attachments ?? 0) > 0} +
+ +
+ {/if} + {#if (object.comments ?? 0) > 0} +
+ +
+ {/if}
- { - showMenu(evt) - }} - icon={IconMoreH} - size="small" />
-
-
- {#if (object.attachments ?? 0) > 0} -
- -
- {/if} - {#if (object.comments ?? 0) > 0} -
- -
- {/if} -
-
-
- diff --git a/plugins/board-resources/src/components/editor/CardAttachments.svelte b/plugins/board-resources/src/components/editor/CardAttachments.svelte index 47ce37f961..64e1ff2a6d 100644 --- a/plugins/board-resources/src/components/editor/CardAttachments.svelte +++ b/plugins/board-resources/src/components/editor/CardAttachments.svelte @@ -54,7 +54,9 @@ {/each}
-