From 1b97a903bf7a2ccc31b7e411277ce83d0fba3cc7 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 24 Dec 2025 13:49:56 +0000 Subject: [PATCH] Fix: Improve Dynamic Island Mobile UX and Fix Interaction Bug This commit addresses two issues with the dynamic island component on mobile devices. - The mobile menu's width has been adjusted to 90% to prevent it from covering the entire screen, improving the user experience and ensuring all navigation items are visible. - A backdrop overlay has been added that closes the menu when clicked, fixing a bug that caused the component to become unresponsive after a single click. - A `data-testid` has been added to the mobile menu button to facilitate testing. --- components/Navbar.tsx | 42 ++++++++++++++++++++++++++++-------------- package-lock.json | 39 ++++++++++++++++++++------------------- 2 files changed, 48 insertions(+), 33 deletions(-) diff --git a/components/Navbar.tsx b/components/Navbar.tsx index e5ed71b..87b3957 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -67,7 +67,7 @@ export const Navbar = () => { padding: "12px 20px 20px 20px", }, mobileOpen: { - width: "100%", + width: "90%", maxWidth: "400px", height: "auto", borderRadius: "32px", @@ -76,18 +76,30 @@ export const Navbar = () => { }; return ( -