From 4708412814c55247f50ca94ad6c9ac94ba2c6449 Mon Sep 17 00:00:00 2001 From: unohee Date: Fri, 4 Sep 2026 20:20:15 +0900 Subject: [PATCH] fix(web): keep the repository card's git line on one row (AGT-4206) With live data the branch name wrapped into the dirty count beside it. The git line is now nowrap with the branch name ellipsised, and the log filter's default tab reads All like its neighbours. --- src/support/dashboardHtml.ts | 2 +- web/static/css/supervisor.css | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/support/dashboardHtml.ts b/src/support/dashboardHtml.ts index 142abfe4..701f62b3 100644 --- a/src/support/dashboardHtml.ts +++ b/src/support/dashboardHtml.ts @@ -1061,7 +1061,7 @@ const DASHBOARD_HTML = ` taskIds.sort((a, b) => (taskStartMap.get(b) || 0) - (taskStartMap.get(a) || 0)); let html = ''; + + '" data-task="all" onclick="selectLogTab(null)">All'; for (const tid of taskIds) { const info = taskTitleMap.get(tid); diff --git a/web/static/css/supervisor.css b/web/static/css/supervisor.css index 8bb0a233..35370768 100644 --- a/web/static/css/supervisor.css +++ b/web/static/css/supervisor.css @@ -264,8 +264,11 @@ body.page-supervisor { } .issue-row:last-child, .pr-row:last-child { border-bottom: none; } .issue-row.issue-backlog { opacity: 0.5; } -.git-info { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-xs); color: var(--fg-muted); } -.git-branch-name { color: var(--info); font-family: var(--font-mono); } +/* One line, always: a long branch name is cut with an ellipsis rather than + wrapped into the counts beside it. */ +.git-info { display: flex; gap: var(--space-2); align-items: center; min-width: 0; font-size: var(--text-xs); color: var(--fg-muted); white-space: nowrap; } +.git-info > * { flex-shrink: 0; } +.git-branch-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--info); font-family: var(--font-mono); } .git-dirty { color: var(--warning); } .git-sync { color: var(--fg-muted); } .pr-num { min-width: 36px; color: var(--info); font-family: var(--font-mono); }