fix: add proper popover hint to tag content page
This commit is contained in:
parent
61770d3e50
commit
b1a920e5c0
2 changed files with 3 additions and 7 deletions
|
@ -115,8 +115,8 @@ export default ((opts?: Partial<TagContentOptions>) => {
|
|||
}
|
||||
|
||||
return (
|
||||
<div class={classes}>
|
||||
<article class="popover-hint">{content}</article>
|
||||
<div class="popover-hint">
|
||||
<article class={classes}>{content}</article>
|
||||
<div class="page-listing">
|
||||
<p>{i18n(cfg.locale).pages.tagContent.itemsUnderTag({ count: pages.length })}</p>
|
||||
<div>
|
||||
|
|
|
@ -117,11 +117,7 @@ async function mouseEnterHandler(
|
|||
|
||||
function clearActivePopover() {
|
||||
const allPopoverElements = document.querySelectorAll(".popover")
|
||||
if (allPopoverElements) {
|
||||
allPopoverElements.forEach((popoverElement) =>
|
||||
popoverElement.classList.remove("active-popover"),
|
||||
)
|
||||
}
|
||||
allPopoverElements.forEach((popoverElement) => popoverElement.classList.remove("active-popover"))
|
||||
}
|
||||
|
||||
document.addEventListener("nav", () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue