From 637fa583d453e4f626a08994df8a7db6ec583108 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Tue, 11 Jul 2023 04:24:55 +0800 Subject: [PATCH] style: adjust spacing between tooltip & reference content --- src/components/Tooltip.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Tooltip.vue b/src/components/Tooltip.vue index f7f917fd..47a7e077 100644 --- a/src/components/Tooltip.vue +++ b/src/components/Tooltip.vue @@ -31,20 +31,20 @@ defineProps<{ white-space: nowrap; &.right { - --at-apply: left-[calc(100%+1em)]; + --at-apply: left-[calc(100%+0.5em)]; } &.left{ - --at-apply: right-[calc(100%+1em)]; + --at-apply: right-[calc(100%+0.5em)]; } &.top { - --at-apply: top--3em left-1/2; + --at-apply: top--2.5em left-1/2; transform: translateX(-50%); } &.bottom { - --at-apply: bottom--3em left-1/2; + --at-apply: bottom--2.5em left-1/2; transform: translateX(-50%); } }