From 07f2849722701f29929f68451f5113835d5ade04 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:16:36 +0200 Subject: [PATCH] Improve mobile ui: added a hamburger navigation to the mobile view. (#7987) * Update GitHubStarsButton component to be hidden on smaller screens * feat: added a mobile navigation to the front-end. * refactor: replace useQueryState with useSuspenseQueryState in ScriptContent and MobileSidebar components; add use-suspense-query-state hook * Revert "refactor: replace useQueryState with useSuspenseQueryState in ScriptContent and MobileSidebar components; add use-suspense-query-state hook" This reverts commit bfad01fc91f6dc9590dd1d6d93b64d1ffb64f5c1. * refactor: wrap MobileSidebar component in Suspense for improved loading handling * Update mobile-sidebar.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- frontend/src/app/layout.tsx | 26 ++-- .../scripts/_components/script-accordion.tsx | 5 +- .../src/app/scripts/_components/sidebar.tsx | 25 ++-- frontend/src/components/navbar.tsx | 19 +-- .../components/navigation/mobile-sidebar.tsx | 116 ++++++++++++++++++ frontend/src/components/ui/command.tsx | 2 +- 6 files changed, 165 insertions(+), 28 deletions(-) create mode 100644 frontend/src/components/navigation/mobile-sidebar.tsx diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index b104cc6c0..94dd902f7 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -103,18 +103,22 @@ export default function RootLayout({
@@ -43,6 +51,7 @@ function Sidebar({ setSelectedScript={setSelectedScript} selectedCategory={selectedCategory} setSelectedCategory={setSelectedCategory} + onItemSelect={onItemSelect} />