From ce0d2a0d41919f96d436d6628e5e9b11a38b86fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20R=C3=B6hrl?= Date: Wed, 17 Jun 2020 09:48:38 +0200 Subject: [PATCH 1/2] attach files in description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakob Röhrl --- src/components/AttachmentDragAndDrop.vue | 4 - src/components/card/AttachmentList.vue | 143 +++++++++---- src/components/card/CardSidebar.vue | 1 - .../card/CardSidebarTabAttachments.vue | 192 +----------------- 4 files changed, 113 insertions(+), 227 deletions(-) diff --git a/src/components/AttachmentDragAndDrop.vue b/src/components/AttachmentDragAndDrop.vue index c901d359e..4d24cfe97 100644 --- a/src/components/AttachmentDragAndDrop.vue +++ b/src/components/AttachmentDragAndDrop.vue @@ -207,8 +207,4 @@ export default { margin: 20px 20px 60px 20px; } - .modal__content button { - float: right; - margin: 40px 3px 3px 0; - } diff --git a/src/components/card/AttachmentList.vue b/src/components/card/AttachmentList.vue index 9a430afb7..c26db7d87 100644 --- a/src/components/card/AttachmentList.vue +++ b/src/components/card/AttachmentList.vue @@ -21,54 +21,87 @@ --> From 7fccb032e3400624b0e30dc7080f72742b1182f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 31 Jul 2020 22:37:44 +0200 Subject: [PATCH 2/2] Simplify structure and fix styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/card/AttachmentList.vue | 89 ++++++++++++-------------- src/components/card/CardSidebar.vue | 13 ++-- webpack.js | 2 +- 3 files changed, 50 insertions(+), 54 deletions(-) diff --git a/src/components/card/AttachmentList.vue b/src/components/card/AttachmentList.vue index c26db7d87..cb54e0a27 100644 --- a/src/components/card/AttachmentList.vue +++ b/src/components/card/AttachmentList.vue @@ -30,55 +30,48 @@ style="display: none;" multiple @change="handleUploadFile"> -
- diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index be7bdca1d..1b3c66a56 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -633,13 +633,16 @@ export default { width: 25vw; min-width: 250px; min-height: 120px; - margin: 20px 20px 60px 20px; + margin: 20px; padding-bottom: 20px; - } + display: flex; + flex-direction: column; - .modal__content button { - float: right; - margin: 40px 3px 3px 0; + &::v-deep .attachment-list { + flex-shrink: 1; + overflow: scroll; + max-height: 50vh; + } } diff --git a/webpack.js b/webpack.js index 65068d595..8b5445ac6 100644 --- a/webpack.js +++ b/webpack.js @@ -32,5 +32,5 @@ const config = { } }; -module.exports = merge(config, webpackConfig) +module.exports = merge(webpackConfig, config)