From d2c2fc17810556a08cbc1c9da9c5fae3379fb05a Mon Sep 17 00:00:00 2001 From: Naiyuan Qing <145280634+NevilleQingNY@users.noreply.github.com> Date: Mon, 1 Jun 2026 16:19:05 +0800 Subject: [PATCH] fix(issues): keep header controls horizontally scrollable --- .../views/issues/components/issues-header.tsx | 124 +++++++++--------- .../my-issues/components/my-issues-header.tsx | 124 +++++++++--------- 2 files changed, 126 insertions(+), 122 deletions(-) diff --git a/packages/views/issues/components/issues-header.tsx b/packages/views/issues/components/issues-header.tsx index 7a7589943..f96c79fe0 100644 --- a/packages/views/issues/components/issues-header.tsx +++ b/packages/views/issues/components/issues-header.tsx @@ -538,68 +538,70 @@ export function IssuesHeader({ const scopeLabel = t(($) => $.scope[SCOPE_LABEL_KEY[scope]]); return ( -
- {/* Left: scope buttons */} -
- {SCOPE_VALUES.map((s) => ( - - setScope(s)} - > +
+
+ {/* Left: scope buttons */} +
+ {SCOPE_VALUES.map((s) => ( + + setScope(s)} + > + {t(($) => $.scope[SCOPE_LABEL_KEY[s]])} + + } + /> + {t(($) => $.scope[SCOPE_DESC_KEY[s]])} + + ))} +
+ + + + {scopeLabel} + + + } + /> + + setScope(value as IssuesScope)}> + {SCOPE_VALUES.map((s) => ( + {t(($) => $.scope[SCOPE_LABEL_KEY[s]])} - - } - /> - {t(($) => $.scope[SCOPE_DESC_KEY[s]])} - - ))} -
+ + ))} + + + - - - {scopeLabel} - - - } - /> - - setScope(value as IssuesScope)}> - {SCOPE_VALUES.map((s) => ( - - {t(($) => $.scope[SCOPE_LABEL_KEY[s]])} - - ))} - - - - -
- {agentRunningFilter && ( - - {t(($) => $.agent_activity.filter_active_label)} - - )} - - +
+ {agentRunningFilter && ( + + {t(($) => $.agent_activity.filter_active_label)} + + )} + + +
); @@ -681,7 +683,7 @@ export function IssueDisplayControls({ const controlButtonClass = "h-8 w-8 gap-1 px-0 text-muted-foreground md:h-7 md:w-auto md:px-2.5"; return ( -
+
{/* Filter */} diff --git a/packages/views/my-issues/components/my-issues-header.tsx b/packages/views/my-issues/components/my-issues-header.tsx index 8c0f5314e..f78a01840 100644 --- a/packages/views/my-issues/components/my-issues-header.tsx +++ b/packages/views/my-issues/components/my-issues-header.tsx @@ -37,70 +37,72 @@ export function MyIssuesHeader({ allIssues }: { allIssues: Issue[] }) { const scopeLabel = SCOPES.find((s) => s.value === scope)?.label ?? SCOPES[0]?.label; return ( -
-
- {SCOPES.map((s) => ( - - act.setScope(s.value)} - > - {s.label} - - } - /> - {s.description} - - ))} -
+
+
+
+ {SCOPES.map((s) => ( + + act.setScope(s.value)} + > + {s.label} + + } + /> + {s.description} + + ))} +
- - + + {scopeLabel} + + + } + /> + + act.setScope(value as MyIssuesScope)} > - {scopeLabel} - - - } - /> - - act.setScope(value as MyIssuesScope)} - > - {SCOPES.map((s) => ( - - {s.label} - - ))} - - - + {SCOPES.map((s) => ( + + {s.label} + + ))} + + + -
- {agentRunningFilter && ( - - {tIssues(($) => $.agent_activity.filter_active_label)} - - )} - - +
+ {agentRunningFilter && ( + + {tIssues(($) => $.agent_activity.filter_active_label)} + + )} + + +
);