From c89288191e466966899634a9b315d128ae7fe784 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sun, 16 Aug 2026 16:36:34 +0700 Subject: [PATCH] fix(frontend): responsive layout across all dashboard pages - SectionHeader: action (filters/legends) now wraps below the title on narrow screens instead of overflowing beside it (flex-wrap, gap-2 sm:gap-3). - GuildChannelPicker: selects go full-width and stack on mobile (w-full sm:w-44 / sm:w-52) instead of fixed widths that exceeded a 375px viewport. - Messages search: w-full sm:w-64 so it doesn't crowd the picker on mobile. - TopBar: tighter padding (px-4 sm:px-5), smaller title on mobile, connection status uses compact (dot only) on mobile, ambient pill hidden < sm. - Shell main + dashboard channel label: responsive padding / shrink-0 widths. Verified tsc --noEmit + next build clean; targets breakpoints 375/768/1024/1440. --- .../src/app/(dashboard)/dashboard/view.tsx | 2 +- .../frontend/src/app/(dashboard)/messages/view.tsx | 2 +- .../src/components/shared/guild-picker.tsx | 6 +++--- .../frontend/src/components/shared/section.tsx | 4 ++-- .../frontend/src/components/shell/ambient-app.tsx | 2 +- services/frontend/src/components/shell/topbar.tsx | 14 +++++++------- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/services/frontend/src/app/(dashboard)/dashboard/view.tsx b/services/frontend/src/app/(dashboard)/dashboard/view.tsx index 45375e4..a10eed3 100644 --- a/services/frontend/src/app/(dashboard)/dashboard/view.tsx +++ b/services/frontend/src/app/(dashboard)/dashboard/view.tsx @@ -155,7 +155,7 @@ export function DashboardView({ 100; return (
- + {c.channel_name ?? c.channel_id.slice(0, 8)}
diff --git a/services/frontend/src/app/(dashboard)/messages/view.tsx b/services/frontend/src/app/(dashboard)/messages/view.tsx index e9cab1b..e7d5e45 100644 --- a/services/frontend/src/app/(dashboard)/messages/view.tsx +++ b/services/frontend/src/app/(dashboard)/messages/view.tsx @@ -131,7 +131,7 @@ export function MessagesView({ setLoadedPages(0); }} /> -
+
+
); diff --git a/services/frontend/src/components/shared/section.tsx b/services/frontend/src/components/shared/section.tsx index 1c5c9de..771fa70 100644 --- a/services/frontend/src/components/shared/section.tsx +++ b/services/frontend/src/components/shared/section.tsx @@ -12,12 +12,12 @@ export function SectionHeader({ className?: string; }) { return ( -
+
{eyebrow &&
{eyebrow}
}

{title}

- {action} + {action &&
{action}
}
); } diff --git a/services/frontend/src/components/shell/ambient-app.tsx b/services/frontend/src/components/shell/ambient-app.tsx index d2e4b3a..841bc3b 100644 --- a/services/frontend/src/components/shell/ambient-app.tsx +++ b/services/frontend/src/components/shell/ambient-app.tsx @@ -12,7 +12,7 @@ export function AppFrame({ children }: { children: React.ReactNode }) {
-
+
{children}
diff --git a/services/frontend/src/components/shell/topbar.tsx b/services/frontend/src/components/shell/topbar.tsx index caccf90..542bd61 100644 --- a/services/frontend/src/components/shell/topbar.tsx +++ b/services/frontend/src/components/shell/topbar.tsx @@ -32,20 +32,20 @@ export function TopBar() { : "text-signal"; return ( -
-
- GMW -

{label}

+
+
+ GMW +

{label}

-
- +
+