Commit eefc7e8
fix(command-palette): wire up option-row flex layout (categories right-aligned)
The default #option slot rendered the action label + category as two bare
sibling <span>s; their only separation was the collapsible whitespace text
node between them. esbuild (Vite ≤7) preserved that whitespace, so the
category sat just after the label; Vite 8's transforms drop it, so the two
crammed together (`New FileFILE`) on all 5 non-lit targets (lit's html``
literals kept the space, so it was unaffected).
The `.rozie-command-palette-option` rule (display:flex; space-between) was
authored for exactly this row but never applied to any element — so the
intended "label left, category right-aligned" layout never shipped. Wrap
the two spans in it (now live), trim it to layout-only (combobox's <li>
already supplies padding/cursor), and drop the dead --active/--disabled
modifiers. Layout no longer depends on collapsible markup whitespace, so
it's robust across all 6 targets and both bundlers.
Visually confirmed: categories now align on the right edge, labels on the
left, on every target.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KSYH6VBAJwa7nYy4AksuNH1 parent c29c7dd commit eefc7e8
1 file changed
Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
443 | 445 | | |
444 | 446 | | |
445 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
446 | 455 | | |
447 | 456 | | |
448 | 457 | | |
449 | 458 | | |
450 | 459 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | 460 | | |
466 | 461 | | |
467 | 462 | | |
| |||
0 commit comments