From 769975b42b9223bebd5753ca0a63e0751345af24 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 24 Jan 2021 14:27:52 +0100 Subject: [PATCH] Fix spacing for lists with no rights to add new tasks --- src/styles/components/list.scss | 10 +++++++--- src/styles/components/tasks.scss | 4 ++++ src/views/list/views/List.vue | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/styles/components/list.scss b/src/styles/components/list.scss index 5456ce92..f5ac935a 100644 --- a/src/styles/components/list.scss +++ b/src/styles/components/list.scss @@ -28,9 +28,13 @@ } } -.task-add .button { - padding: 10px 1rem; - height: 40px; +.task-add { + padding: 1rem 1rem 0; + margin-bottom: 0; + + .button { + height: 40px; + } } .list-title { diff --git a/src/styles/components/tasks.scss b/src/styles/components/tasks.scss index c7793551..91e78142 100644 --- a/src/styles/components/tasks.scss +++ b/src/styles/components/tasks.scss @@ -39,6 +39,10 @@ margin: 0 .5rem; border-radius: $radius; + &:first-child { + margin-top: .5rem; + } + &:last-child { margin-bottom: .5rem; } diff --git a/src/views/list/views/List.vue b/src/views/list/views/List.vue index 4f979355..f218fbee 100644 --- a/src/views/list/views/List.vue +++ b/src/views/list/views/List.vue @@ -52,7 +52,7 @@ -
+