GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(web): field controls stop restyling Input, Select, Combobox and Command by juliusmarminge · Pull Request #13206 · pingdotgg/t3code

refactor(web): field controls stop restyling Input, Select, Combobox and Command #13206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 1 commit into restyle/stack-menu from restyle/stack-fields
Sep 23, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

refactor(web): field controls stop restyling Input, Select, Combobox and Command #13206

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1 commit
Select commit
f265549
refactor(web): field controls stop restyling Input, Select, Combobox …
juliusmarminge Sep 23, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
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]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge @claude
juliusmarminge and claude committed Sep 23, 2026
commit f2655496d63871a51a7e9b450b41033c624fe0cf

There are no files selected for viewing

19 changes: 9 additions & 10 deletions 19 apps/web/src/browser/BrowserDeviceToolbar.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ export function BrowserDeviceToolbar({
<SelectTrigger
variant="ghost"
size="xs"
className={cn(
"shrink-0 justify-between px-1.5 font-medium",
width >= 440 ? "w-36" : "w-24",
)}
className={cn("shrink-0 justify-between", width >= 440 ? "w-36" : "w-24")}
aria-label="Browser device preset"
>
<SelectValue />
Expand Down Expand Up @@ -227,7 +224,8 @@ export function BrowserDeviceToolbar({
nativeInput
type="number"
inputMode="numeric"
size="sm"
size="compact"
font="mono"
min={PREVIEW_VIEWPORT_MIN_DIMENSION}
max={PREVIEW_VIEWPORT_MAX_DIMENSION}
value={presentedSize.width}
Expand All @@ -245,16 +243,17 @@ export function BrowserDeviceToolbar({
aria-label="Viewport width"
aria-invalid={!customValid}
className={cn(
"h-6 rounded-md text-center tabular-nums [&_[data-slot=input]]:h-full [&_[data-slot=input]]:px-1 [&_[data-slot=input]]:text-xs [&_[data-slot=input]]:leading-none [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]",
width >= 360 ? "w-14" : "w-11",
"text-center [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]",
width >= 360 ? "w-14" : "w-13",
)}
/>
<span className="text-xs text-muted-foreground">×</span>
<Input
nativeInput
type="number"
inputMode="numeric"
size="sm"
size="compact"
font="mono"
min={PREVIEW_VIEWPORT_MIN_DIMENSION}
max={PREVIEW_VIEWPORT_MAX_DIMENSION}
value={presentedSize.height}
Expand All @@ -272,8 +271,8 @@ export function BrowserDeviceToolbar({
aria-label="Viewport height"
aria-invalid={!customValid}
className={cn(
"h-6 rounded-md text-center tabular-nums [&_[data-slot=input]]:h-full [&_[data-slot=input]]:px-1 [&_[data-slot=input]]:text-xs [&_[data-slot=input]]:leading-none [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]",
width >= 360 ? "w-14" : "w-11",
"text-center [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]",
width >= 360 ? "w-14" : "w-13",
)}
/>
</form>
Expand Down
7 changes: 2 additions & 5 deletions 7 apps/web/src/components/BranchToolbarBranchSelector.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,6 @@ export function BranchToolbarBranchSelector({
key={itemValue}
index={index}
value={itemValue}
className="pe-2"
onClick={() => selectPickerItem(itemValue)}
>
<div className="flex min-w-0 items-center gap-2 py-1">
Expand All @@ -726,7 +725,6 @@ export function BranchToolbarBranchSelector({
key={itemValue}
index={index}
value={itemValue}
className="pe-1.5"
onClick={() => selectPickerItem(itemValue)}
>
<span className="truncate">Create new ref &quot;{newRefName}&quot;</span>
Expand Down Expand Up @@ -754,7 +752,6 @@ export function BranchToolbarBranchSelector({
key={itemValue}
index={index}
value={itemValue}
className="pe-1.5"
onClick={() => selectPickerItem(itemValue)}
onContextMenu={(event) => handleBranchContextMenu(event, itemValue)}
>
Expand Down Expand Up @@ -809,10 +806,10 @@ export function BranchToolbarBranchSelector({
onContextMenu={(event) => handleBranchContextMenu(event, resolvedActiveBranch)}
>
<ComboboxTrigger
render={<Button variant="ghost" size="xs" />}
render={<ComposerControl size="xs" />}
// No press-scale: the popup aligns live to this trigger, so a
// momentary 0.97 shrink would drag the open popup ~3px sideways.
className="min-w-0 max-w-full font-normal text-muted-foreground/70 text-xs! hover:text-foreground/80 active:scale-100"
className="min-w-0 max-w-full active:scale-100"
disabled={isInitialBranchesLoadPending || isBranchActionPending}
>
<GitBranchIcon className="size-3 shrink-0 opacity-70" />
Expand Down
2 changes: 1 addition & 1 deletion 2 apps/web/src/components/BranchToolbarEnvModeSelector.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
<SelectTrigger
variant="ghost"
size="xs"
className="min-w-0 shrink font-normal text-xs!"
className="min-w-0 shrink"
aria-label="Workspace"
data-composer-shortcut="composer.workspace"
data-composer-context-control
Expand Down
2 changes: 1 addition & 1 deletion 2 apps/web/src/components/BranchToolbarEnvironmentSelector.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
<SelectTrigger
variant="ghost"
size="xs"
className="min-w-0 max-w-full font-normal text-xs!"
className="min-w-0 max-w-full"
aria-label="Run on"
data-composer-shortcut="composer.host"
data-composer-context-control
Expand Down
2 changes: 1 addition & 1 deletion 2 apps/web/src/components/CommandPalette.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ function CommandPaletteDialog(props: {
? "Search project contents"
: "Command palette"
}
className={cn("overflow-hidden p-0", props.mode === "content" && "h-105")}
className={cn("overflow-hidden", props.mode === "content" && "h-105")}
data-command-palette="true"
data-palette-mode={props.mode}
data-testid="command-palette"
Expand Down
2 changes: 1 addition & 1 deletion 2 apps/web/src/components/CommandPaletteContent.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function CommandPaletteContent({
{inputAccessory}
</div>
<CommandPanel className={panelClassName}>{children}</CommandPanel>
<CommandFooter className="gap-3 max-sm:flex-col max-sm:items-start">
<CommandFooter className="max-sm:flex-col max-sm:items-start">
<div className="flex items-center gap-3">
<KbdGroup>
<Kbd>
Expand Down
3 changes: 1 addition & 2 deletions 3 apps/web/src/components/CommandPaletteResults.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function CommandPaletteResults(props: CommandPaletteResultsProps) {
<CommandList>
{props.groups.map((group) => (
<CommandGroup items={group.items} key={group.value}>
<CommandGroupLabel className="ps-[9px]">{group.label}</CommandGroupLabel>
<CommandGroupLabel>{group.label}</CommandGroupLabel>
<CommandCollection>
{(item) =>
item.disabled ? (
Expand Down Expand Up @@ -109,7 +109,6 @@ function CommandPaletteResultRow(props: {
<CommandItem
value={props.item.value}
active={props.isActive}
className="gap-2"
onMouseDown={(event) => {
event.preventDefault();
}}
Expand Down
1 change: 0 additions & 1 deletion 1 apps/web/src/components/CustomSnoozeDialog.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ function CustomSnoozeDialog() {
) : (
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2">
<NumberField
className="gap-1.5"
id={`${id}-amount`}
min={0}
step="any"
Expand Down
3 changes: 2 additions & 1 deletion 3 apps/web/src/components/DiffPanel.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ export default function DiffPanel({
}}
>
<ComboboxTrigger
className="inline-flex min-w-0 max-w-48 items-center gap-1 overflow-hidden rounded-md px-1.5 py-1 outline-none transition-colors hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"
render={<Button variant="ghost-muted" size="xs" />}
className="min-w-0 max-w-48"
aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`}
>
<span className="min-w-0 truncate">{selectedGitSource.baseRef}</span>
Expand Down
9 changes: 4 additions & 5 deletions 9 apps/web/src/components/LegacySidebar.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2784,30 +2784,29 @@ function ProjectSortMenu({
<div className="px-2 py-1">
<NumberField
aria-label="Visible thread count"
className="w-28 gap-0"
className="w-28"
max={MAX_SIDEBAR_THREAD_PREVIEW_COUNT}
min={MIN_SIDEBAR_THREAD_PREVIEW_COUNT}
onValueChange={handleThreadPreviewCountChange}
size="sm"
step={1}
value={threadPreviewCount}
>
<NumberFieldGroup className="h-7 rounded-md sm:h-6.5">
<NumberFieldGroup>
<NumberFieldDecrement
aria-label="Decrease visible thread count"
className="px-2 sm:px-2 [&_svg]:size-3.5"
className="[&_svg]:size-3.5"
/>
<NumberFieldInput
aria-label="Visible thread count"
className="h-7 w-9 grow-0 px-0 text-xs leading-7 sm:h-6.5 sm:leading-6.5"
inputMode="numeric"
onKeyDownCapture={(event) => {
event.stopPropagation();
}}
/>
<NumberFieldIncrement
aria-label="Increase visible thread count"
className="px-2 sm:px-2 [&_svg]:size-3.5"
className="[&_svg]:size-3.5"
/>
</NumberFieldGroup>
</NumberField>
Expand Down
1 change: 0 additions & 1 deletion 1 apps/web/src/components/Sidebar.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4483,7 +4483,6 @@ export default function Sidebar() {
key={item.value}
hideIndicator
value={item}
className="font-medium"
onContextMenu={(event) => {
if (project) handleProjectSettings(event, project);
}}
Expand Down
1 change: 0 additions & 1 deletion 1 apps/web/src/components/chat/ComposerCommandMenu.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ const ComposerCommandMenuItem = memo(function ComposerCommandMenuItem(props: {
value={props.item.id}
data-composer-item-id={props.item.id}
active={props.isActive}
className="gap-3 rounded-lg px-3 py-2!"
onMouseMove={() => {
if (!props.isActive) props.onHighlight(props.item.id);
}}
Expand Down
45 changes: 20 additions & 25 deletions 45 apps/web/src/components/preview/PreviewChromeRow.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,6 @@ export function PreviewChromeRow({
<InputGroupInput
ref={inputRef}
value={inputFocused ? draft : url}
className={cn(
onOpenInBrowser &&
!inputFocused &&
"group-hover/address:pe-7 transition-[padding]",
)}
onChange={(event) => setDraft(event.target.value)}
onFocus={() => {
setDraft(url);
Expand Down Expand Up @@ -213,26 +208,26 @@ export function PreviewChromeRow({
/>
</Tooltip>
{onOpenInBrowser && !inputFocused ? (
<InputGroupAddon
align="inline-end"
className="pointer-events-none absolute inset-y-0 right-0 opacity-0 transition-opacity group-hover/address:pointer-events-auto group-hover/address:opacity-100"
>
<Tooltip>
<TooltipTrigger
render={
<Button
variant="ghost"
size="icon-xs"
onClick={onOpenInBrowser}
aria-label="Open in system browser"
type="button"
/>
}
>
<ExternalLink />
</TooltipTrigger>
<TooltipPopup>Open in system browser</TooltipPopup>
</Tooltip>
<InputGroupAddon align="inline-end">
{/* Revealed on hover so a resting address bar reads as plain text. */}
<span className="pointer-events-none flex opacity-0 transition-opacity focus-within:pointer-events-auto focus-within:opacity-100 group-hover/address:pointer-events-auto group-hover/address:opacity-100">
<Tooltip>
<TooltipTrigger
render={
<Button
variant="ghost"
size="icon-xs"
onClick={onOpenInBrowser}
aria-label="Open in system browser"
type="button"
/>
}
>
<ExternalLink />
</TooltipTrigger>
<TooltipPopup>Open in system browser</TooltipPopup>
</Tooltip>
</span>
</InputGroupAddon>
) : null}
</InputGroup>
Expand Down
6 changes: 4 additions & 2 deletions 6 apps/web/src/components/search/ProjectContentSearchDialog.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ function EmptyContentSearchDialog() {
footerActionLabel="Open file"
inputProps={{ disabled: true, placeholder: "Search project contents…" }}
mode="none"
panelClassName="flex min-h-0 flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground"
panelClassName="flex min-h-0 flex-1 items-center justify-center"
testId="project-content-search"
value=""
>
Open a project to search its files.
<p className="px-6 text-center text-muted-foreground text-sm">
Open a project to search its files.
</p>
</CommandPaletteContent>
);
}
Expand Down
2 changes: 0 additions & 2 deletions 2 apps/web/src/components/settings/AddProviderInstanceDialog.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ export function AddProviderInstanceDialog({
<label className={cn("grid gap-2", wizardStep !== 1 && "hidden")}>
<span className="text-xs font-medium text-foreground">Label</span>
<Input
className="bg-background"
placeholder="e.g. Work"
value={label}
onChange={(event) => setLabel(event.target.value)}
Expand All @@ -319,7 +318,6 @@ export function AddProviderInstanceDialog({
<label className={cn("grid gap-2", wizardStep !== 1 && "hidden")}>
<span className="text-xs font-medium text-foreground">Instance ID</span>
<Input
className="bg-background"
placeholder={`${driver}_work`}
value={instanceId}
onChange={(event) => {
Expand Down
5 changes: 2 additions & 3 deletions 5 apps/web/src/components/settings/ConnectionsSettings.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,6 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
readOnly
value={revealValue}
rows={isRevealValueUrl ? 4 : 3}
className="text-xs leading-relaxed"
onFocus={(event) => event.currentTarget.select()}
onClick={(event) => event.currentTarget.select()}
/>
Expand Down Expand Up @@ -2734,7 +2733,7 @@ export function ConnectionsSettings() {
<AutocompleteItem
key={`${target.alias}:${target.hostname}:${target.port ?? ""}`}
value={target}
className="h-8 min-h-8 gap-2 whitespace-nowrap"
className="h-8 min-h-8 whitespace-nowrap"
>
<span className="min-w-0 truncate text-sm font-medium">
{target.alias}
Expand All @@ -2754,7 +2753,7 @@ export function ConnectionsSettings() {
})}
</AutocompleteList>
) : (
<AutocompleteEmpty className="break-all px-3 py-2 text-xs">
<AutocompleteEmpty className="break-all">
No hosts match "{savedBackendSshHost.trim()}".
</AutocompleteEmpty>
)}
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.