From 7c947115e26a91e6ad64d71697848a14ea8d459b Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 12 Nov 2024 21:05:56 +0200 Subject: [PATCH] make active tab to jut out slightly to indicate that it's active (inspired by winMe) --- .../opacity_input/opacity_input.vue | 4 +- .../roundness_input/roundness_input.vue | 51 +++++++++++++++++++ src/components/tab_switcher/tab_switcher.scss | 8 ++- 3 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 src/components/roundness_input/roundness_input.vue diff --git a/src/components/opacity_input/opacity_input.vue b/src/components/opacity_input/opacity_input.vue index 5a80b100..dea17a46 100644 --- a/src/components/opacity_input/opacity_input.vue +++ b/src/components/opacity_input/opacity_input.vue @@ -8,7 +8,7 @@ class="label" :class="{ faint: !present || disabled }" > - {{ $t('settings.style.common.opacity') }} + {{ label }} +
+ + + +
+ + + diff --git a/src/components/tab_switcher/tab_switcher.scss b/src/components/tab_switcher/tab_switcher.scss index 4e242b91..a4d5aa3a 100644 --- a/src/components/tab_switcher/tab_switcher.scss +++ b/src/components/tab_switcher/tab_switcher.scss @@ -119,7 +119,7 @@ .tab { flex: 1; box-sizing: content-box; - min-width: 10em; + max-width: 9em; min-width: 1px; border-top-right-radius: 0; border-bottom-right-radius: 0; @@ -128,6 +128,11 @@ margin-right: -200px; margin-left: 1em; + &:not(.active) { + margin-top: 0; + margin-left: 1.5em; + } + @media all and (max-width: 800px) { padding-left: 0.25em; padding-right: calc(0.25em + 200px); @@ -181,6 +186,7 @@ &:not(.active) { z-index: 4; + margin-top: 0.25em; &:hover { z-index: 6;