From 4470d24e28406d66abf8da728cdd352ef6bb7a6c Mon Sep 17 00:00:00 2001 From: Andrew Anderson Date: Sun, 8 Nov 2026 18:20:48 -0700 Subject: [PATCH] dashboard: widen the Recent merges popover so titles are readable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The popover opened from the Merged pill was capped at 34rem, so every PR title ellipsised at ~40 characters. Set it to 52rem, capped to the viewport and to the sticky bar that clips it (it is right-anchored under the pill and grows leftward). The title column is the grid's only flexible track, so the width goes to titles; the by/lane/time meta column keeps its natural nowrap width. The merge-queue popover keeps its old 22–34rem sizing and the ≤720px phone sheet is a separate dialog and is unchanged. Signed-off-by: Andrew Anderson --- changelog.d/fixed-recent-merges-popover-width.md | 1 + src/pkg/dashboard/static-src/css/tracker.css | 9 ++++++++- src/pkg/dashboard/static/index.html | 9 ++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 changelog.d/fixed-recent-merges-popover-width.md diff --git a/changelog.d/fixed-recent-merges-popover-width.md b/changelog.d/fixed-recent-merges-popover-width.md new file mode 100644 index 0000000000..668e034156 --- /dev/null +++ b/changelog.d/fixed-recent-merges-popover-width.md @@ -0,0 +1 @@ +- dashboard: the Recent merges popover is 52rem wide (was capped at 34rem) so PR titles read instead of ellipsising; it stays right-anchored under the Merged pill, capped to the viewport and its bar, and the phone full-width sheet is unchanged. diff --git a/src/pkg/dashboard/static-src/css/tracker.css b/src/pkg/dashboard/static-src/css/tracker.css index 1d4e30996c..94ee1bd4ee 100644 --- a/src/pkg/dashboard/static-src/css/tracker.css +++ b/src/pkg/dashboard/static-src/css/tracker.css @@ -733,7 +733,13 @@ .ham-merged-count .ham-merged-n .ham-odo-col .ham-odo-d { height: 1.5em; line-height: 1.5; } body.light-mode .ham-merged-count .ham-merged-n .ham-odo-col { color: var(--text); } body.light-mode .ham-merged-count .ham-merged-n .ham-odo { --ham-odo-track: color-mix(in srgb, var(--panel) 96%, black); } - .ham-merged-pop { position: absolute; right: var(--sp-2); top: calc(var(--full-size) - var(--sp-1)); min-width: 22rem; max-width: 34rem; max-height: 60vh; overflow: auto; padding: var(--sp-4) var(--sp-5); border: var(--line-width) solid var(--line); border-radius: var(--r-lg); background: var(--panel-strong); box-shadow: var(--shadow-raised); font-size: var(--fs-sm); color: var(--text); z-index: var(--z-cue-flight); } + /* Recent merges: a 52rem card (was capped at 34rem) so PR titles read + instead of ellipsising at ~40 chars; the title column is the only + flexible one, so the width goes to it. Right-anchored under the pill + it grows leftward, capped to the viewport and to the sticky bar it + sits in (which clips its overflow). The phone tier is a separate + .ham-pop-sheet dialog and is not affected. */ + .ham-merged-pop { position: absolute; right: var(--sp-2); top: calc(var(--full-size) - var(--sp-1)); width: 52rem; max-width: min(calc(100vw - 2rem), calc(100% - 2 * var(--sp-2))); max-height: 60vh; overflow: auto; padding: var(--sp-4) var(--sp-5); border: var(--line-width) solid var(--line); border-radius: var(--r-lg); background: var(--panel-strong); box-shadow: var(--shadow-raised); font-size: var(--fs-sm); color: var(--text); z-index: var(--z-cue-flight); } .ham-merged-pop-head { display: flex; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-3); font-weight: var(--fw-semibold); } .ham-merged-pop-head .ham-merged-pop-sum { color: var(--text-faint); font-weight: var(--fw-medium); } .ham-merged-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); } @@ -742,6 +748,7 @@ .ham-merged-list .ham-merged-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ham-merged-list .ham-merged-meta { color: var(--text-faint); white-space: nowrap; font-size: var(--fs-xs); } .ham-merged-pop .ham-empty { padding: var(--sp-2) 0; } + .ham-queue-pop { width: auto; min-width: 22rem; max-width: 34rem; } .ham-merged-pop-foot { margin-top: var(--sp-3); color: var(--text-faint); font-size: var(--fs-xs); } .ham-merged-list .ham-merged-repo { display: none; } @media (max-width: 640px), ((pointer: coarse) and (max-width: 820px)) { diff --git a/src/pkg/dashboard/static/index.html b/src/pkg/dashboard/static/index.html index c39d4f938c..7cb5e39849 100644 --- a/src/pkg/dashboard/static/index.html +++ b/src/pkg/dashboard/static/index.html @@ -2076,7 +2076,13 @@ .ham-merged-count .ham-merged-n .ham-odo-col .ham-odo-d { height: 1.5em; line-height: 1.5; } body.light-mode .ham-merged-count .ham-merged-n .ham-odo-col { color: var(--text); } body.light-mode .ham-merged-count .ham-merged-n .ham-odo { --ham-odo-track: color-mix(in srgb, var(--panel) 96%, black); } - .ham-merged-pop { position: absolute; right: var(--sp-2); top: calc(var(--full-size) - var(--sp-1)); min-width: 22rem; max-width: 34rem; max-height: 60vh; overflow: auto; padding: var(--sp-4) var(--sp-5); border: var(--line-width) solid var(--line); border-radius: var(--r-lg); background: var(--panel-strong); box-shadow: var(--shadow-raised); font-size: var(--fs-sm); color: var(--text); z-index: var(--z-cue-flight); } + /* Recent merges: a 52rem card (was capped at 34rem) so PR titles read + instead of ellipsising at ~40 chars; the title column is the only + flexible one, so the width goes to it. Right-anchored under the pill + it grows leftward, capped to the viewport and to the sticky bar it + sits in (which clips its overflow). The phone tier is a separate + .ham-pop-sheet dialog and is not affected. */ + .ham-merged-pop { position: absolute; right: var(--sp-2); top: calc(var(--full-size) - var(--sp-1)); width: 52rem; max-width: min(calc(100vw - 2rem), calc(100% - 2 * var(--sp-2))); max-height: 60vh; overflow: auto; padding: var(--sp-4) var(--sp-5); border: var(--line-width) solid var(--line); border-radius: var(--r-lg); background: var(--panel-strong); box-shadow: var(--shadow-raised); font-size: var(--fs-sm); color: var(--text); z-index: var(--z-cue-flight); } .ham-merged-pop-head { display: flex; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-3); font-weight: var(--fw-semibold); } .ham-merged-pop-head .ham-merged-pop-sum { color: var(--text-faint); font-weight: var(--fw-medium); } .ham-merged-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); } @@ -2085,6 +2091,7 @@ .ham-merged-list .ham-merged-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ham-merged-list .ham-merged-meta { color: var(--text-faint); white-space: nowrap; font-size: var(--fs-xs); } .ham-merged-pop .ham-empty { padding: var(--sp-2) 0; } + .ham-queue-pop { width: auto; min-width: 22rem; max-width: 34rem; } .ham-merged-pop-foot { margin-top: var(--sp-3); color: var(--text-faint); font-size: var(--fs-xs); } .ham-merged-list .ham-merged-repo { display: none; } @media (max-width: 640px), ((pointer: coarse) and (max-width: 820px)) {