Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/fixed-recent-merges-popover-width.md
Original file line number Diff line number Diff line change
@@ -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.
9 changes: 8 additions & 1 deletion src/pkg/dashboard/static-src/css/tracker.css
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand All @@ -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)) {
Expand Down
9 changes: 8 additions & 1 deletion src/pkg/dashboard/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand All @@ -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)) {
Expand Down
Loading