Repository navigation
Commit f265549
refactor(web): field controls stop restyling Input, Select, Combobox and Command
Drops every className restyle on the field-family ui exports (Input,
NumberField*, InputGroup*, Combobox*, Select*, Command*, Autocomplete,
Textarea). Only one ui file changes; everything else moves onto an
existing variant or size, or restructures.
Primitive change (a real concept, several consumers):
- AutocompleteItem lays its children out with gap-2, like ComboboxItem
content already does. Its only item consumer (SSH host suggestions)
passed gap-2 by hand; CommandItem inherits it, so the palette and
composer menus drop their gap overrides.
Moved onto existing variants/sizes (drift, visible change accepted):
- Dense numeric/hex inputs (browser viewport width/height, provider
accent hex, theme token hex) use Input size="compact" + font="mono"
instead of hand-shrunk sm inputs. The theme token hex field becomes a
normal bordered compact input instead of a borderless tinted chip.
- Keybinding "when" expression uses InputGroup + compact mono
InputGroupInput with the unknown-condition warning as an inline-end
addon; the header search uses InputGroup + addon icon instead of an
absolutely placed icon and a reach-in padding override. Invalid state
comes from aria-invalid, which the group already styles.
- Keybinding recording state drops its primary tint; the focus ring and
"Press shortcut" placeholder carry it.
- Branch toolbar env/workspace selects and the branch combobox trigger
lose their font/size/colour overrides; the branch trigger renders
through ComposerControl size="xs", the owner of that resting look.
- Diff panel base-ref trigger renders as Button ghost-muted size="xs"
instead of a hand-built button recipe.
- Legacy sidebar visible-thread stepper uses NumberField size="sm" as is.
- ComboboxItem pe-* overrides, ComboboxItem font-medium, CommandGroupLabel
and CommandFooter spacing tweaks, CommandDialogPopup p-0 (it has no
padding), NumberField gap tweaks, redundant bg-background on Inputs,
Textarea and AutocompleteEmpty text tweaks, SelectValue leading-7 and
the StorageSettings NumberFieldInput padding are deleted outright.
- ComposerCommandMenu rows use CommandItem's own padding and radius.
Restructured:
- Preview address bar: the hover-revealed "open in browser" button fades
via a plain span inside the addon; the input no longer animates its
padding.
- Empty project-content search renders its message as a plain <p>
instead of styling CommandPaletteContent's panel text.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 2585a7e commit f265549
24 files changed
Lines changed: 72 additions & 90 deletions
File tree
- apps/web/src
- browser
- components
- chat
- preview
- search
- settings
- ui
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 192 | + | |
196 | 193 | | |
197 | 194 | | |
198 | 195 | | |
| |||
227 | 224 | | |
228 | 225 | | |
229 | 226 | | |
230 | | - | |
| 227 | + | |
| 228 | + | |
231 | 229 | | |
232 | 230 | | |
233 | 231 | | |
| |||
245 | 243 | | |
246 | 244 | | |
247 | 245 | | |
248 | | - | |
249 | | - | |
| 246 | + | |
| 247 | + | |
250 | 248 | | |
251 | 249 | | |
252 | 250 | | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
257 | | - | |
| 255 | + | |
| 256 | + | |
258 | 257 | | |
259 | 258 | | |
260 | 259 | | |
| |||
272 | 271 | | |
273 | 272 | | |
274 | 273 | | |
275 | | - | |
276 | | - | |
| 274 | + | |
| 275 | + | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | | - | |
708 | 707 | | |
709 | 708 | | |
710 | 709 | | |
| |||
726 | 725 | | |
727 | 726 | | |
728 | 727 | | |
729 | | - | |
730 | 728 | | |
731 | 729 | | |
732 | 730 | | |
| |||
754 | 752 | | |
755 | 753 | | |
756 | 754 | | |
757 | | - | |
758 | 755 | | |
759 | 756 | | |
760 | 757 | | |
| |||
809 | 806 | | |
810 | 807 | | |
811 | 808 | | |
812 | | - | |
| 809 | + | |
813 | 810 | | |
814 | 811 | | |
815 | | - | |
| 812 | + | |
816 | 813 | | |
817 | 814 | | |
818 | 815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
| 653 | + | |
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
| 752 | + | |
| 753 | + | |
753 | 754 | | |
754 | 755 | | |
755 | 756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2784 | 2784 | | |
2785 | 2785 | | |
2786 | 2786 | | |
2787 | | - | |
| 2787 | + | |
2788 | 2788 | | |
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
2792 | 2792 | | |
2793 | 2793 | | |
2794 | 2794 | | |
2795 | | - | |
| 2795 | + | |
2796 | 2796 | | |
2797 | 2797 | | |
2798 | | - | |
| 2798 | + | |
2799 | 2799 | | |
2800 | 2800 | | |
2801 | 2801 | | |
2802 | | - | |
2803 | 2802 | | |
2804 | 2803 | | |
2805 | 2804 | | |
2806 | 2805 | | |
2807 | 2806 | | |
2808 | 2807 | | |
2809 | 2808 | | |
2810 | | - | |
| 2809 | + | |
2811 | 2810 | | |
2812 | 2811 | | |
2813 | 2812 | | |
| |||
0 commit comments