Skip to content

feat(web): Mobile responsive web dashboard #581

Closed

Description

@ele-yufo

Problem

The web dashboard (codeburn web) has no mobile responsive adaptation. On mobile devices:

  • Fixed 240px sidebar takes most of the screen width
  • Stat cards grid (4 columns) overflows
  • Charts are compressed and unreadable
  • No way to collapse/toggle the sidebar
  • Filter buttons overflow horizontally

Proposed Solution

Add responsive design using Tailwind CSS breakpoints (md: / 768px):

  1. Sidebar to off-canvas drawer: Hidden by default on mobile, slides in from left with backdrop overlay when toggled
  2. Hamburger menu: Appears in header on mobile to toggle sidebar
  3. Stat cards: grid-cols-2 base stays 2 columns on mobile
  4. Bottom panels: lg:grid-cols-2 becomes single column on mobile
  5. Chart area: Horizontally scrollable on mobile
  6. Header: Controls wrap and scroll horizontally
  7. Touch targets: Minimum 36px height for all interactive elements

All changes are pure Tailwind responsive classes + minimal React state (sidebarOpen). No new dependencies. Desktop view unchanged.

Happy to submit a PR if the approach sounds good.

Activity

  1. ozymandiashh commented on Jul 1, 2026

    @ozymandiashh
    Collaborator

    Thanks for the detailed writeup, @ele-yufo. I opened #587 implementing this.

    It follows your approach (off-canvas drawer with a backdrop, hamburger toggle, horizontally scrollable header controls, ~36px touch targets), with a few adjustments after going through the current dash/src/App.tsx:

    • The sidebar is the one hard breakage on mobile: at 375px the fixed 240px w-60 aside leaves the main column about 105px wide, and the header controls push the page ~328px wider than the screen. The drawer plus the scrollable header fix both (main goes to 355px, horizontal overflow to 0).
    • A few of the listed items are already responsive on main, so I left them alone: the stat cards are grid-cols-2 sm:grid-cols-4, the bottom panels are lg:grid-cols-2, and the chart uses recharts' ResponsiveContainer, so those already collapse to a single column and rescale.
    • Everything mobile is scoped with Tailwind's max-md: variant, so the desktop layout stays byte-identical (no new CSS at >=768px).
    • I added a little accessibility on top of the visual work: aria-expanded/aria-controls on the hamburger, and visibility: hidden on the closed drawer so its links leave the tab order on mobile rather than staying focusable off-screen.

    The full behavior and verification matrix are in the PR. Thanks again for flagging it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions