From 27dd60a812110d49c60feea34e02bdf823d188b2 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 5 Sep 2021 17:02:47 +0100 Subject: [PATCH] :adhesive_bandage: Fixes the UI for tooltip description --- src/components/LinkItems/Item.vue | 14 ++++++++------ src/styles/color-palette.scss | 2 ++ src/styles/color-themes.scss | 12 ++++++++++++ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/components/LinkItems/Item.vue b/src/components/LinkItems/Item.vue index 8572592c..dbe96ca9 100644 --- a/src/components/LinkItems/Item.vue +++ b/src/components/LinkItems/Item.vue @@ -131,6 +131,7 @@ export default { }, /* Returns configuration object for the tooltip */ getTooltipOptions() { + if (!this.description) return {}; // If no description, then skip const hotkeyText = this.hotkey ? `\nPress '${this.hotkey}' to launch` : ''; return { disabled: !this.description, @@ -410,16 +411,18 @@ export default {