Make the web UI responsive for mobile screens #44
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description:
The current UI is built with a fixed sidebar layout (
shanty-web/frontend/src/components/navbar.rs) and content area. On mobile screens:What to change
shanty-web/frontend/src/components/navbar.rs: Add a hamburger menu button visible only on small screens (@media (max-width: 768px)). On mobile, the sidebar should be hidden by default and slide in as an overlay when the hamburger is tapped. Add asidebar_openstate and toggle logic.shanty-web/frontend/style.css: Add responsive breakpoints:@media (max-width: 768px)— hide sidebar, show hamburger, make content full-widthoverflow-x: autowrapper so they scroll horizontally.stats-grid: change from 4 columns to 2 on mobile.form-groupinputs: ensurewidth: 100%.autocomplete-dropdown: ensure it doesn't overflow the screen.tab-bar: allow horizontal scroll if tabs overflowshanty-web/frontend/src/pages/dashboard.rs: The stats grid already uses CSS grid — just needs the responsive override in CSS.shanty-web/frontend/src/pages/settings.rs: Form groups should stack properly — mostly just needs CSSmax-widthadjustments.shanty-web/frontend/src/pages/playlists.rs: The seed artist picker and generated tracks table need to work on narrow screens. The autocomplete dropdown should be full-width on mobile.Acceptance criteria: