From b1a920e5c0c2c749beae19cfe15ca5301257bcb0 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Thu, 10 Apr 2025 23:28:36 +0000
Subject: [PATCH] fix: add proper popover hint to tag content page
---
quartz/components/scripts/popover.inline.ts | 6 +-----
quartz/components/pages/TagContent.tsx | 4 ++--
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/quartz/components/pages/TagContent.tsx b/quartz/components/pages/TagContent.tsx
index 5e81901..a1df6e1 100644
--- a/quartz/components/pages/TagContent.tsx
+++ b/quartz/components/pages/TagContent.tsx
@@ -115,8 +115,8 @@
}
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>
diff --git a/quartz/components/scripts/popover.inline.ts b/quartz/components/scripts/popover.inline.ts
index 86cc885..9fd0aaf 100644
--- a/quartz/components/scripts/popover.inline.ts
+++ b/quartz/components/scripts/popover.inline.ts
@@ -117,11 +117,7 @@
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", () => {
--
Gitblit v1.10.0