From 9f458638f8ad37a98283624c8091b092bac9bcf3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:16:21 +0000 Subject: [PATCH 1/3] Initial plan From 1b05005dc2bae1c2829c05d6b12f7935b659db35 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:27:40 +0000 Subject: [PATCH 2/3] Fix MegaMenu dropdown not appearing on click Co-authored-by: Thatoh <36707457+Thatoh@users.noreply.github.com> --- components/MegaMenu.tsx | 6 +++--- debug_temp.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 debug_temp.js diff --git a/components/MegaMenu.tsx b/components/MegaMenu.tsx index 16172d0..f05e1ae 100644 --- a/components/MegaMenu.tsx +++ b/components/MegaMenu.tsx @@ -87,7 +87,7 @@ const MegaMenu: React.FC = ({ }, [isOpen, handleKeyDown]); // Early return with validation - if (!isOpen || !position || !content?.items?.length) { + if (!isOpen || !content?.items?.length) { return null; } @@ -118,7 +118,7 @@ const MegaMenu: React.FC = ({ return ( - {isOpen && position && ( + {isOpen && ( = ({ style={{ width: '100vw', height: `${calculateHeight}px`, // Dynamic height - top: `${position.top}px`, + top: position ? `${position.top}px` : '80px', // Fallback to header height if position not calculated yet left: '0px', }} role="dialog" diff --git a/debug_temp.js b/debug_temp.js new file mode 100644 index 0000000..b57aff6 --- /dev/null +++ b/debug_temp.js @@ -0,0 +1 @@ +console.log('MegaMenu Debug: isOpen =', isOpen, 'position =', position, 'content?.items?.length =', content?.items?.length); From c847d13f900c0a749af7305ef115b5abd5a780c5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 30 Aug 2025 10:28:19 +0000 Subject: [PATCH 3/3] Clean up debug file and update gitignore Co-authored-by: Thatoh <36707457+Thatoh@users.noreply.github.com> --- .gitignore | 3 +++ debug_temp.js | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 debug_temp.js diff --git a/.gitignore b/.gitignore index b5cdc13..6643400 100644 --- a/.gitignore +++ b/.gitignore @@ -95,3 +95,6 @@ jspm_packages/ # TernJS port file .tern-port + +# Temporary debug files +debug_temp.js diff --git a/debug_temp.js b/debug_temp.js deleted file mode 100644 index b57aff6..0000000 --- a/debug_temp.js +++ /dev/null @@ -1 +0,0 @@ -console.log('MegaMenu Debug: isOpen =', isOpen, 'position =', position, 'content?.items?.length =', content?.items?.length);