From b1a920e5c0c2c749beae19cfe15ca5301257bcb0 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Thu, 10 Apr 2025 16:28:36 -0700 Subject: [PATCH] fix: add proper popover hint to tag content page --- quartz/components/pages/TagContent.tsx | 4 ++-- quartz/components/scripts/popover.inline.ts | 6 +----- 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 @@ export default ((opts?: Partial) => { } return ( -
-
{content}
+
+
{content}

{i18n(cfg.locale).pages.tagContent.itemsUnderTag({ count: pages.length })}

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 @@ 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", () => {