From 7ab9204e96e21050760cf3280197c139551829f5 Mon Sep 17 00:00:00 2001
From: Corentin THOMASSET <corentin.thomasset74@gmail.com>
Date: Sun, 3 Sep 2023 18:12:22 +0200
Subject: refactor(c-key-value-list): got rid of table for layout (#611)

---
 src/ui/c-tooltip/c-tooltip.vue | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/ui/c-tooltip/c-tooltip.vue')

diff --git a/src/ui/c-tooltip/c-tooltip.vue b/src/ui/c-tooltip/c-tooltip.vue
index cc48fe1..24c586b 100644
--- a/src/ui/c-tooltip/c-tooltip.vue
+++ b/src/ui/c-tooltip/c-tooltip.vue
@@ -19,7 +19,10 @@ const isTargetHovered = useElementHover(targetRef);
         'op-100 scale-100': isTargetHovered,
       }"
     >
-      <slot name="tooltip">
+      <slot
+        v-if="isTargetHovered"
+        name="tooltip"
+      >
         {{ tooltip }}
       </slot>
     </div>
-- 
cgit v1.2.3

