From ab47690a01401614eb15ef9d7d1443197f785aac Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 6 Sep 2021 21:25:35 +0100 Subject: [PATCH 1/4] :bug: Re: #205 - Fixes tooltip for config menu --- src/styles/global-styles.scss | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/styles/global-styles.scss b/src/styles/global-styles.scss index 0303bf0f..954af7da 100644 --- a/src/styles/global-styles.scss +++ b/src/styles/global-styles.scss @@ -88,4 +88,32 @@ html { } } } +} + +/* Overriding styles for tooltip component */ +.tooltip { + background: var(--description-tooltip-background); + border: 1px solid var(--description-tooltip-color); + border-radius: var(--curve-factor-small); + color: var(--description-tooltip-color); + padding: 0.2rem 0.5rem; + max-width: 250px; + z-index: 5; +} +.tooltip-arrow { + border-width: 5px 5px 0 5px; + border-color: var(--description-tooltip-color); + border-left-color: transparent!important; + border-right-color: transparent!important; + border-bottom-color: transparent!important; + bottom: -11px; + left: calc(50% - 5px); + margin-top: 0; + margin-bottom: 0; + width: 0; + height: 0; + border-style: solid; + position: absolute; + margin: 5px; + z-index: 3; } \ No newline at end of file From 86b83e7e3ba82278844cd844bab4470d7ce290ed Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 6 Sep 2021 21:34:02 +0100 Subject: [PATCH 2/4] :adhesive_bandage: Adds missing tooltip to theme configurator --- src/components/Settings/ThemeSelector.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Settings/ThemeSelector.vue b/src/components/Settings/ThemeSelector.vue index f5574628..cba01269 100644 --- a/src/components/Settings/ThemeSelector.vue +++ b/src/components/Settings/ThemeSelector.vue @@ -12,6 +12,7 @@ Date: Mon, 6 Sep 2021 21:34:38 +0100 Subject: [PATCH 3/4] :globe_with_meridians: Adds missing translation for View-switcher tooltip --- src/assets/locales/en.json | 1 + src/components/Settings/ConfigLauncher.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index e5adcce1..ebda9dfa 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -62,6 +62,7 @@ "css-note-l3": "To remove all custom styles, delete the contents and hit Save Changes" }, "alternate-views": { + "alternate-view-heading": "Switch View", "default": "Default", "workspace": "Workspace", "minimal": "Minimal" diff --git a/src/components/Settings/ConfigLauncher.vue b/src/components/Settings/ConfigLauncher.vue index b0d2e89a..8e3bbd23 100644 --- a/src/components/Settings/ConfigLauncher.vue +++ b/src/components/Settings/ConfigLauncher.vue @@ -6,7 +6,7 @@ + v-tooltip="tooltip($t('alternate-views.alternate-view-heading'))" /> From 3b1abbb6f4a243b6f8505934dbc16734a6372c33 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 6 Sep 2021 21:57:20 +0100 Subject: [PATCH 4/4] :rotating_light: Fixes sonarcloud linter warning --- src/components/LinkItems/Item.vue | 2 -- src/styles/global-styles.scss | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue index 800c8658..02da9d04 100644 --- a/src/components/LinkItems/Item.vue +++ b/src/components/LinkItems/Item.vue @@ -431,8 +431,6 @@ export default { border-bottom-color: transparent!important; bottom: -11px; left: calc(50% - 5px); - margin-top: 0; - margin-bottom: 0; width: 0; height: 0; border-style: solid; diff --git a/src/styles/global-styles.scss b/src/styles/global-styles.scss index 954af7da..14a1e5ab 100644 --- a/src/styles/global-styles.scss +++ b/src/styles/global-styles.scss @@ -108,12 +108,10 @@ html { border-bottom-color: transparent!important; bottom: -11px; left: calc(50% - 5px); - margin-top: 0; - margin-bottom: 0; + margin: 5px; width: 0; height: 0; border-style: solid; position: absolute; - margin: 5px; z-index: 3; } \ No newline at end of file