From c041d7aa9b148e829a7539c2c2bd47814f4b10ce Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 28 Sep 2022 21:16:05 +0300 Subject: [PATCH] refactor css for timeline buttons, make it a bit easier to tap them --- .../quick_filter_settings.vue | 15 ---------- .../quick_view_settings.vue | 15 ---------- src/components/timeline/timeline.scss | 30 +++++++++++++++++++ src/components/timeline/timeline.vue | 30 +++++++++++-------- 4 files changed, 47 insertions(+), 43 deletions(-) diff --git a/src/components/quick_filter_settings/quick_filter_settings.vue b/src/components/quick_filter_settings/quick_filter_settings.vue index 982238e776..554c6bde8f 100644 --- a/src/components/quick_filter_settings/quick_filter_settings.vue +++ b/src/components/quick_filter_settings/quick_filter_settings.vue @@ -89,19 +89,4 @@ diff --git a/src/components/quick_view_settings/quick_view_settings.vue b/src/components/quick_view_settings/quick_view_settings.vue index 99b14a66a2..5fdfd6082e 100644 --- a/src/components/quick_view_settings/quick_view_settings.vue +++ b/src/components/quick_view_settings/quick_view_settings.vue @@ -76,19 +76,4 @@ diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index 900bdad31b..c38ecfea32 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -13,6 +13,36 @@ background-color: var(--cGreen); } + .timeline-header-button { + align-self: stretch; + text-align: center; + width: var(--__panel-heading-height); + height: var(--__panel-heading-height); + margin: calc(-1 * var(--panel-heading-height-padding)); + + > button { + box-sizing: border-box; + padding: calc(1 * var(--panel-heading-height-padding)); + height: 100%; + width: 100%; + text-align: center; + + svg { + font-size: 1.2em; + } + } + } + + .timeline-header-icon { + align-self: stretch; + text-align: center; + width: var(--__panel-heading-height); + + svg { + font-size: 1.2em; + } + } + .loadmore-button { position: relative } diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index cffd4b68db..c8aeaf1e69 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -19,21 +19,25 @@ /> - - - + +