Skip to content

Commit e380a20

Browse files
authored
Merge pull request #5115 from cardstack/cs-11327-selection-trigger-sizing
CS-11327: reserve a stable width for the selection-menu count
2 parents c179fc5 + 1a28f7d commit e380a20

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)