From 9f33cf4e6e2f03fa3b5ac8a4cab286003a82a290 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 15 Oct 2020 15:35:27 +0200 Subject: [PATCH 1/6] adds file deletion button as well as confirmation modals to delete rows and delete image buttons --- .../src/DataGrid/AttachmentCell/Button.svelte | 10 +-- .../src/DataGrid/Component.svelte | 15 +++-- .../src/DataGrid/customRenderer.js | 7 ++ .../src/attachments/AttachmentList.svelte | 67 +++++++++++++++++-- 4 files changed, 83 insertions(+), 16 deletions(-) diff --git a/packages/standard-components/src/DataGrid/AttachmentCell/Button.svelte b/packages/standard-components/src/DataGrid/AttachmentCell/Button.svelte index 1c7a24ea4f..96e210c57c 100644 --- a/packages/standard-components/src/DataGrid/AttachmentCell/Button.svelte +++ b/packages/standard-components/src/DataGrid/AttachmentCell/Button.svelte @@ -1,18 +1,18 @@ - + - - + \ No newline at end of file From f0cea0ef0eafae32dc69229167c3e2d44cfd37c6 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 15 Oct 2020 15:51:50 +0200 Subject: [PATCH 5/6] adjust button size --- .../src/attachments/AttachmentList.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/standard-components/src/attachments/AttachmentList.svelte b/packages/standard-components/src/attachments/AttachmentList.svelte index f87712409d..8def009506 100644 --- a/packages/standard-components/src/attachments/AttachmentList.svelte +++ b/packages/standard-components/src/attachments/AttachmentList.svelte @@ -71,14 +71,15 @@ display: block; box-sizing: border-box; position: absolute; - font-size: var(--font-size-l); + font-size: var(--font-size-m); + line-height: 110%; z-index: 1000; top: 4px; - left: 46px; + left: 50px; margin: 0; padding: 0; - width: 1.5rem; - height: 1.5rem; + width: 1.3rem; + height: 1.3rem; border: 0; color: white; border-radius: var(--border-radius-xl); From 7e9cf7d01e05033fd433bac12bb8a211ff6c2d85 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 15 Oct 2020 15:58:21 +0200 Subject: [PATCH 6/6] adds stopPropagation modifier to delete file button --- .../standard-components/src/attachments/AttachmentList.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/standard-components/src/attachments/AttachmentList.svelte b/packages/standard-components/src/attachments/AttachmentList.svelte index 8def009506..e52eeef5a7 100644 --- a/packages/standard-components/src/attachments/AttachmentList.svelte +++ b/packages/standard-components/src/attachments/AttachmentList.svelte @@ -31,7 +31,7 @@ {:else}{/if} {file.name} -
+
{/each}