From 2ea5dc69f69ae350e3f2c7e846b881ac930f5372 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sun, 6 Sep 2026 23:53:34 +0200 Subject: [PATCH] fix: nav dropdown closes before the pointer reaches it The dropdown panel hung mt-1 below its trigger, and that 4px margin was a hover dead zone: leaving the link dropped :hover and the menu closed mid-move. The old Vue menu papered over this with a 150ms close delay. Wrap the panel in a top-full pt-1 bridge whose padding stays inside the hover chain, so the trip from trigger to panel never breaks group-hover. --- src/components/SiteHeader.astro | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/components/SiteHeader.astro b/src/components/SiteHeader.astro index 4d14a76..61fdc7b 100644 --- a/src/components/SiteHeader.astro +++ b/src/components/SiteHeader.astro @@ -54,18 +54,22 @@ const activeText = '!text-elf-blue dark:!text-elf-blue' {isActive(item) && } -
- {item.children!.map((child) => ( - - {child.title} - - ))} + +
+
+ {item.children!.map((child) => ( + + {child.title} + + ))} +
),