From a4e0eeea7a6784d8d96ce40be2921e41c5df8b0a Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 29 Sep 2022 11:49:19 +0300 Subject: [PATCH 1/2] fix buttons overlapping --- src/components/notifications/notifications.scss | 5 +++-- src/components/timeline/timeline.scss | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index f4a3e0992..b57dfb3a6 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -35,11 +35,12 @@ text-align: center; width: var(--__panel-heading-height); height: var(--__panel-heading-height); - margin: calc(-1 * var(--panel-heading-height-padding)); + margin: calc(-1 * var(--panel-heading-height-padding)) 0; + margin-right: -0.5em; > button { box-sizing: border-box; - padding: calc(1 * var(--panel-heading-height-padding)); + padding: calc(1 * var(--panel-heading-height-padding)) 0; height: 100%; width: 100%; text-align: center; diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index c38ecfea3..18a80a63d 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -18,11 +18,12 @@ text-align: center; width: var(--__panel-heading-height); height: var(--__panel-heading-height); - margin: calc(-1 * var(--panel-heading-height-padding)); + margin: calc(-1 * var(--panel-heading-height-padding)) 0; + margin-right: -0.5em; > button { box-sizing: border-box; - padding: calc(1 * var(--panel-heading-height-padding)); + padding: calc(1 * var(--panel-heading-height-padding)) 0; height: 100%; width: 100%; text-align: center; @@ -37,6 +38,7 @@ align-self: stretch; text-align: center; width: var(--__panel-heading-height); + margin-right: -0.5em; svg { font-size: 1.2em; From ce6ce4b6cdd3aea2712ce73c0b0fd9d64372ac8e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 29 Sep 2022 11:52:48 +0300 Subject: [PATCH 2/2] minor improvements --- src/components/notifications/notifications.scss | 2 +- src/components/timeline/timeline.scss | 4 ++-- src/components/timeline/timeline.vue | 6 ++++-- src/panel.scss | 3 ++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index b57dfb3a6..245e3f47b 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -36,7 +36,7 @@ width: var(--__panel-heading-height); height: var(--__panel-heading-height); margin: calc(-1 * var(--panel-heading-height-padding)) 0; - margin-right: -0.5em; + margin-right: calc(-1 * var(--__panel-heading-gap)); > button { box-sizing: border-box; diff --git a/src/components/timeline/timeline.scss b/src/components/timeline/timeline.scss index 18a80a63d..f5dbb6393 100644 --- a/src/components/timeline/timeline.scss +++ b/src/components/timeline/timeline.scss @@ -19,7 +19,7 @@ width: var(--__panel-heading-height); height: var(--__panel-heading-height); margin: calc(-1 * var(--panel-heading-height-padding)) 0; - margin-right: -0.5em; + margin-right: calc(-1 * var(--__panel-heading-gap)); > button { box-sizing: border-box; @@ -38,7 +38,7 @@ align-self: stretch; text-align: center; width: var(--__panel-heading-height); - margin-right: -0.5em; + margin-right: calc(-1 * var(--__panel-heading-gap)); svg { font-size: 1.2em; diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index fe5d4822b..15d097e8b 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -5,9 +5,11 @@ v-if="!embedded" :timeline-name="timelineName" /> -
+