From 304451981d5cc2f38dee94707dc8c645e645d14b Mon Sep 17 00:00:00 2001 From: Nicholai Date: Sun, 18 Jan 2026 06:34:42 -0700 Subject: [PATCH] Fix context menu positioning animation Change transition-all to transition-[opacity,transform] so that position adjustments for viewport bounds apply instantly while fade-in and scale animations remain smooth. Co-Authored-By: Claude Opus 4.5 --- src/components/ContextMenu.astro | 429 +++++++++++++++++++++++++++++++ 1 file changed, 429 insertions(+) create mode 100644 src/components/ContextMenu.astro diff --git a/src/components/ContextMenu.astro b/src/components/ContextMenu.astro new file mode 100644 index 0000000..601ba55 --- /dev/null +++ b/src/components/ContextMenu.astro @@ -0,0 +1,429 @@ +--- +// Context-aware custom right-click menu +const navItems = [ + { href: '/', label: 'Home' }, + { href: '/dev', label: 'Dev' }, + { href: '/blog', label: 'Blog' }, + { href: '/hubert', label: 'Hubert' }, + { href: '/contact', label: 'Contact' }, +]; +--- + + + + + + + + + + + + + + + +