From 78fa75845182431e8b867bd80d36e88e092e6971 Mon Sep 17 00:00:00 2001 From: Agent Date: Mon, 13 Apr 2026 21:08:33 +0000 Subject: [PATCH] feat(web): make Web UI responsive for mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Nav: icons only on mobile, icon+label on sm+ - Brand: abbreviated "H A" on mobile, full "Hermes Agent" on sm+ - Content: reduced padding on mobile (px-3 vs px-6) - StatusPage: session cards stack vertically on mobile, truncate overflow text, strip model namespace for brevity - ConfigPage: sidebar becomes horizontal scrollable pills on mobile instead of fixed left column, search hidden on mobile - SessionsPage: title + search stack vertically on mobile, search goes full-width - Card component: add overflow-hidden to prevent content bleed - Body/root: add overflow-x-hidden to prevent horizontal scroll - Footer: reduced font sizes on mobile All changes use Tailwind responsive breakpoints (sm: prefix). No logic changes — purely layout/CSS adjustments. --- web/src/App.tsx | 32 ++++++++++++++-------------- web/src/components/ui/card.tsx | 2 +- web/src/index.css | 1 + web/src/pages/ConfigPage.tsx | 16 +++++++------- web/src/pages/SessionsPage.tsx | 6 +++--- web/src/pages/StatusPage.tsx | 38 +++++++++++++++++----------------- 6 files changed, 49 insertions(+), 46 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index b2f76808ef..d52757c20f 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -51,7 +51,7 @@ export default function App() { const PageComponent = PAGE_COMPONENTS[page]; return ( -
+
{/* Global grain + warm glow (matches landing page) */}
@@ -59,31 +59,31 @@ export default function App() { {/* ---- Header with grid-border nav ---- */}
- {/* Brand */} -
- - Hermes
Agent + {/* Brand — abbreviated on mobile */} +
+ + Hermes Agent
- {/* Nav grid — Mondwest labels like the landing page nav */} + {/* Nav — icons only on mobile, icon+label on sm+ */} - {/* Version badge */} -
+ {/* Version badge — hidden on mobile */} +
Web UI @@ -102,7 +102,7 @@ export default function App() {
@@ -110,11 +110,11 @@ export default function App() { {/* ---- Footer ---- */}