Commit aaa332ca11

aaa332ca113957ec7ca4909351b086b2cca7a197

parent: b03793d79a

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-05-12 15:08 UTC

Update Tooltip.vue

Layout: unified · split

docs/.vitepress/theme/components/Tooltip.vue +2 −12
@@ -13,12 +13,9 @@ const isOpen = ref(false)
1313withDefaults(
1414 defineProps<{
1515 title: string
16 icon: string
1716 }>(),
1817 {
1918 title: 'Info',
20 // https://icon-sets.iconify.design/material-symbols/
21 icon: 'i-material-symbols-help'
2219 }
2320)
2421</script>
@@ -27,12 +24,9 @@ withDefaults(
2724 <VTooltip theme="vp-tooltip" @show="isOpen = true" @hide="isOpen = false">
2825 <button
2926 aria-label="Tooltip"
30 :class="[
31 'text-$vp-custom-block-tip-text-deep size-3 p-0 select-none font-bold cursor-pointer',
32 isOpen && 'tooltip-open-glow'
33 ]"
27 class="size-3 p-0 select-none font-bold cursor-pointer" style="color: #a8f0cc"
3428 >
35 <div :class="icon" />
29 <div :class="isOpen ? 'i-ic-twotone-add-circle' : 'i-ic-twotone-add-circle-outline'" />
3630 </button>
3731
3832 <template #popper>
@@ -90,8 +84,4 @@ withDefaults(
9084 border-bottom: 1px solid var(--vp-c-divider);
9185}
9286
93.tooltip-open-glow {
94 filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor);
95 transition: filter 0.2s ease;
96}
9787</style>
\ No newline at end of file