From c2694dc08907d2e20eea90dd97d829e8dfbfb65b Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 8 May 2022 11:13:19 +0200 Subject: [PATCH] fix: filter button alignments and backgrounds for link shares --- src/styles/components/list.scss | 17 +++-- src/styles/theme/link-share.scss | 4 +- src/views/list/ListGantt.vue | 122 +++++++++++++++++-------------- src/views/list/ListList.vue | 5 ++ src/views/list/ListTable.vue | 5 ++ 5 files changed, 90 insertions(+), 63 deletions(-) diff --git a/src/styles/components/list.scss b/src/styles/components/list.scss index 5fbb0677..92403dd6 100644 --- a/src/styles/components/list.scss +++ b/src/styles/components/list.scss @@ -6,7 +6,7 @@ // - Table.vue $filter-container-top-default: -59px; -$filter-container-top-link-share-gantt: -138px; +$filter-container-top-link-share-gantt: -133px; $filter-container-top-link-share-list: -47px; .filter-container { @@ -91,14 +91,21 @@ $filter-container-top-link-share-list: -47px; .link-share-container .gantt-chart-container .filter-container, .gantt-chart-container .filter-container { right: 0; - margin-top: calc(#{$filter-container-top-link-share-gantt} - 2rem); + margin-top: calc(#{$filter-container-top-link-share-gantt - 2} - 7rem); +} + +.link-share-container .gantt-chart-container .filter-container { + margin-top: calc(#{$filter-container-top-link-share-gantt} - 5rem); } .link-share-container .list-view .filter-container { margin-top: $filter-container-top-link-share-list - 10px; } -.link-share-container .filter-container { - right: 9rem; - margin-top: $filter-container-top-default; +.link-share-container.list\.table-view, +.link-share-container.list\.list-view { + .filter-container { + right: 9rem; + margin-top: $filter-container-top-default; + } } \ No newline at end of file diff --git a/src/styles/theme/link-share.scss b/src/styles/theme/link-share.scss index cafb41c9..bb57c9b3 100644 --- a/src/styles/theme/link-share.scss +++ b/src/styles/theme/link-share.scss @@ -17,8 +17,8 @@ } .link-share-container { - &.has-background, - &.list\.kanban-view { + &.list\.gantt-view, + &.list\.kanban-view { .container { max-width: 100vw; diff --git a/src/views/list/ListGantt.vue b/src/views/list/ListGantt.vue index 82b765dd..dba346d4 100644 --- a/src/views/list/ListGantt.vue +++ b/src/views/list/ListGantt.vue @@ -1,75 +1,75 @@