* more tooltip fixes

* cleanup
This commit is contained in:
bread
2026-01-22 00:19:10 -08:00
committed by GitHub
parent 7af5eb1e25
commit 170ef97f33
18 changed files with 43 additions and 53 deletions

View File

@@ -26,10 +26,12 @@ const resolvedIcon = computed(() => withBase(props.icon))
</button>
<template #popper>
<div class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 max-w-md max-h-md border-2 border-solid p-4 transition-all">
<h3 v-if="title" class="text-$vp-c-text-1 mb-2 text-lg font-semibold" v-text="title" />
<div class="text-$vp-c-text-1 text-sm content">
<slot />
<div class="border-$vp-c-divider bg-$vp-c-bg-alt b-rd-4 max-w-md max-h-md border-2 border-solid flex flex-col transition-all overflow-hidden">
<div class="overflow-y-auto p-4">
<h3 v-if="title" class="text-$vp-c-text-1 mb-2 text-lg font-semibold" v-text="title" />
<div class="text-$vp-c-text-1 text-sm content vp-doc">
<slot />
</div>
</div>
</div>
</template>
@@ -47,20 +49,8 @@ const resolvedIcon = computed(() => withBase(props.icon))
padding: 0 !important;
}
.v-popper__popper .content ul {
list-style: disc;
padding-left: 1.25rem;
margin: 0.5rem 0;
.vp-doc a.tooltip-source-link {
color: inherit;
text-decoration: none;
}
.v-popper__popper .content ol {
list-style: decimal;
padding-left: 1.25rem;
margin: 0.5rem 0;
}
.v-popper__popper .content li {
margin: 0.25rem 0;
}
</style>