From 4f86e6ccfb7874cc9ab12b2f46ca06e23635543d Mon Sep 17 00:00:00 2001 From: ele-yufo <141306194+ele-yufo@users.noreply.github.com> Date: Wed, 1 Jul 2026 19:18:06 +0800 Subject: [PATCH] feat(web): mobile responsive web dashboard (#582) Add mobile responsive support for the web dashboard: - Hamburger button in header (hidden on md+) to toggle sidebar - Sidebar becomes off-canvas drawer on mobile with slide-in transition - Backdrop overlay with blur when sidebar is open - Header stays sticky on mobile scroll - Content area stacks vertically on mobile - Main content takes full width on mobile - Sidebar auto-closes when a device is selected All changes use Tailwind responsive classes (md: breakpoint). Desktop layout is completely unchanged. Co-authored-by: yufo --- dash/src/App.tsx | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/dash/src/App.tsx b/dash/src/App.tsx index 8d0bafc..934109c 100644 --- a/dash/src/App.tsx +++ b/dash/src/App.tsx @@ -347,6 +347,7 @@ export function App() { const [view, setView] = useState('all') const [unit, setUnit] = useState('cost') const [searchOpen, setSearchOpen] = useState(false) + const [sidebarOpen, setSidebarOpen] = useState(false) const [responded, setResponded] = useState>(new Set()) const qc = useQueryClient() @@ -427,8 +428,20 @@ export function App() { return (
-
+
+ CodeBurn CodeBurn @@ -482,12 +495,23 @@ export function App() {
-
-