Skip to content

Commit 7f18293

Browse files
lukemeliaclaude
andcommitted
Reserve a stable width for the selection-menu count
CS-11327. Give the count a 2ch minimum width with tabular figures so the trigger doesn't shift when the count crosses 1↔2 digits (e.g. a Select All jumping 9→10). Height already matches the adjacent sort button via the shared --boxel-button-sm min-height. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4461b18 commit 7f18293

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • packages/boxel-ui/addon/src/components/selection-menu

packages/boxel-ui/addon/src/components/selection-menu/index.gts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ export default class SelectionMenu extends Component<Signature> {
121121
.selection-menu-count {
122122
line-height: 1;
123123
white-space: nowrap;
124+
/* Reserve a stable width (and equal-width digits) so the trigger
125+
doesn't shift when the count crosses 1↔2 digits, e.g. during a
126+
Select All that jumps 9→10. */
127+
min-width: 2ch;
128+
text-align: center;
129+
font-variant-numeric: tabular-nums;
124130
}
125131
.selection-menu-caret {
126132
flex-shrink: 0;

0 commit comments

Comments
 (0)