fix(ui): Size Select popups to the widest option and truncate the PR repo name

Virtualised list rows are absolutely positioned, so the popup only took the
trigger's width and cut short labels like "Merged". The Pull Requests header
now keeps the repository on one line with an ellipsis and a tooltip.
This commit is contained in:
l0ng-ai committed 2026-10-24 10:02:13 +08:00
1 parent 1309ce10e4
commit 4f74f22624
4 files changed
+38 -4

No files matched your search

+17 -2
View File
@@ -72,14 +72,29 @@
flex: none;
color: var(--fg-muted);
}
/* The label keeps its width (up to most of the row); a long detail (a path) is cut instead. */
.sizer {
height: 0;
overflow: hidden;
visibility: hidden;
}
/* Mirrors a List row: inset, padding and gap. */
.sizerRow {
display: flex;
gap: 6px;
margin: 0 var(--list-inset, 6px);
padding: 0 8px;
white-space: nowrap;
}
.optionLabel {
flex: 1 0 auto;
max-width: 70%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The label keeps its width (up to most of the row); a long detail (a path) is cut instead. */
.withDetail {
max-width: 70%;
}
.detail {
flex: 0 1 auto;
min-width: 0;