GeezerVison is showing github.com — refactor(web): field controls stop restyling Input, Select, Combobox … · aaditagrawal/t3code@3f40d1a
This repository was archived by the owner on Oct 10, 2026. It is now read-only.
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/web/src/browser/BrowserDeviceToolbar.tsx +9-10Lines changed: 9 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -189,10 +189,7 @@ export function BrowserDeviceToolbar({ | 189 | 189 | <SelectTrigger | 190 | 190 | variant="ghost" | 191 | 191 | size="xs" | 192 | | - className={cn( | 193 | | - "shrink-0 justify-between px-1.5 font-medium", | 194 | | - width >= 440 ? "w-36" : "w-24", | 195 | | - )} | | 192 | + className={cn("shrink-0 justify-between", width >= 440 ? "w-36" : "w-24")} | 196 | 193 | aria-label="Browser device preset" | 197 | 194 | > | 198 | 195 | <SelectValue /> | @@ -227,7 +224,8 @@ export function BrowserDeviceToolbar({ | 227 | 224 | nativeInput | 228 | 225 | type="number" | 229 | 226 | inputMode="numeric" | 230 | | - size="sm" | | 227 | + size="compact" | | 228 | + font="mono" | 231 | 229 | min={PREVIEW_VIEWPORT_MIN_DIMENSION} | 232 | 230 | max={PREVIEW_VIEWPORT_MAX_DIMENSION} | 233 | 231 | value={presentedSize.width} | @@ -245,16 +243,17 @@ export function BrowserDeviceToolbar({ | 245 | 243 | aria-label="Viewport width" | 246 | 244 | aria-invalid={!customValid} | 247 | 245 | className={cn( | 248 | | - "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]", | 249 | | - width >= 360 ? "w-14" : "w-11", | | 246 | + "text-center [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]", | | 247 | + width >= 360 ? "w-14" : "w-13", | 250 | 248 | )} | 251 | 249 | /> | 252 | 250 | <span className="text-xs text-muted-foreground">×</span> | 253 | 251 | <Input | 254 | 252 | nativeInput | 255 | 253 | type="number" | 256 | 254 | inputMode="numeric" | 257 | | - size="sm" | | 255 | + size="compact" | | 256 | + font="mono" | 258 | 257 | min={PREVIEW_VIEWPORT_MIN_DIMENSION} | 259 | 258 | max={PREVIEW_VIEWPORT_MAX_DIMENSION} | 260 | 259 | value={presentedSize.height} | @@ -272,8 +271,8 @@ export function BrowserDeviceToolbar({ | 272 | 271 | aria-label="Viewport height" | 273 | 272 | aria-invalid={!customValid} | 274 | 273 | className={cn( | 275 | | - "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]", | 276 | | - width >= 360 ? "w-14" : "w-11", | | 274 | + "text-center [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]", | | 275 | + width >= 360 ? "w-14" : "w-13", | 277 | 276 | )} | 278 | 277 | /> | 279 | 278 | </form> | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/BranchToolbarBranchSelector.tsx +10-4Lines changed: 10 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -611,7 +611,6 @@ export function BranchToolbarBranchSelector({ | 611 | 611 | key={itemValue} | 612 | 612 | index={index} | 613 | 613 | value={itemValue} | 614 | | - className="pe-2" | 615 | 614 | onClick={() => selectPickerItem(itemValue)} | 616 | 615 | > | 617 | 616 | <div className="flex min-w-0 items-center gap-2 py-1"> | @@ -633,7 +632,6 @@ export function BranchToolbarBranchSelector({ | 633 | 632 | key={itemValue} | 634 | 633 | index={index} | 635 | 634 | value={itemValue} | 636 | | - className="pe-1.5" | 637 | 635 | onClick={() => selectPickerItem(itemValue)} | 638 | 636 | > | 639 | 637 | <span className="truncate">Create new ref "{newRefName}"</span> | @@ -719,9 +717,17 @@ export function BranchToolbarBranchSelector({ | 719 | 717 | onContextMenu={(event) => handleBranchContextMenu(event, resolvedActiveBranch)} | 720 | 718 | > | 721 | 719 | <ComboboxTrigger | 722 | | - render={<Button variant="ghost" size={displayMode === "panel" ? "sm" : "xs"} />} | | 720 | + render={ | | 721 | + displayMode === "panel" ? ( | | 722 | + <Button variant="ghost" size="sm" /> | | 723 | + ) : ( | | 724 | + <ComposerControl size="xs" /> | | 725 | + ) | | 726 | + } | | 727 | + // No press-scale: the popup aligns live to this trigger, so a | | 728 | + // momentary 0.97 shrink would drag the open popup ~3px sideways. | 723 | 729 | className={cn( | 724 | | - "min-w-0 max-w-full font-normal text-muted-foreground/70 text-xs! hover:text-foreground/80 active:scale-100", | | 730 | + "min-w-0 max-w-full active:scale-100", | 725 | 731 | displayMode === "panel" && THREAD_DETAILS_PANEL_SELECT_ROW_CLASS, | 726 | 732 | )} | 727 | 733 | disabled={isInitialBranchesLoadPending || isBranchActionPending} | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/BranchToolbarEnvModeSelector.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -139,7 +139,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe | 139 | 139 | variant="ghost" | 140 | 140 | size={displayMode === "panel" ? "default" : "xs"} | 141 | 141 | className={cn( | 142 | | - "min-w-0 shrink font-normal text-xs!", | | 142 | + "min-w-0 shrink", | 143 | 143 | displayMode === "panel" && THREAD_DETAILS_PANEL_SELECT_ROW_CLASS, | 144 | 144 | )} | 145 | 145 | aria-label="Workspace" | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/BranchToolbarEnvironmentSelector.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -108,7 +108,7 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir | 108 | 108 | variant="ghost" | 109 | 109 | size={displayMode === "panel" ? "default" : "xs"} | 110 | 110 | className={cn( | 111 | | - "min-w-0 max-w-full font-normal text-xs!", | | 111 | + "min-w-0 max-w-full", | 112 | 112 | displayMode === "panel" && THREAD_DETAILS_PANEL_SELECT_ROW_CLASS, | 113 | 113 | )} | 114 | 114 | aria-label="Run on" | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPalette.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -626,7 +626,7 @@ function CommandPaletteDialog(props: { | 626 | 626 | ? "Search project contents" | 627 | 627 | : "Command palette" | 628 | 628 | } | 629 | | - className={cn("overflow-hidden p-0", props.mode === "content" && "h-105")} | | 629 | + className={cn("overflow-hidden", props.mode === "content" && "h-105")} | 630 | 630 | data-command-palette="true" | 631 | 631 | data-palette-mode={props.mode} | 632 | 632 | data-testid="command-palette" | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPaletteContent.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -50,7 +50,7 @@ export function CommandPaletteContent({ | 50 | 50 | {inputAccessory} | 51 | 51 | </div> | 52 | 52 | <CommandPanel className={panelClassName}>{children}</CommandPanel> | 53 | | - <CommandFooter className="gap-3 max-sm:flex-col max-sm:items-start"> | | 53 | + <CommandFooter className="max-sm:flex-col max-sm:items-start"> | 54 | 54 | <div className="flex items-center gap-3"> | 55 | 55 | <KbdGroup> | 56 | 56 | <Kbd> | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPaletteResults.tsx +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -41,7 +41,7 @@ export function CommandPaletteResults(props: CommandPaletteResultsProps) { | 41 | 41 | <CommandList> | 42 | 42 | {props.groups.map((group) => ( | 43 | 43 | <CommandGroup items={group.items} key={group.value}> | 44 | | - <CommandGroupLabel className="ps-[9px]">{group.label}</CommandGroupLabel> | | 44 | + <CommandGroupLabel>{group.label}</CommandGroupLabel> | 45 | 45 | <CommandCollection> | 46 | 46 | {(item) => | 47 | 47 | item.disabled ? ( | @@ -109,7 +109,6 @@ function CommandPaletteResultRow(props: { | 109 | 109 | <CommandItem | 110 | 110 | value={props.item.value} | 111 | 111 | active={props.isActive} | 112 | | - className="gap-2" | 113 | 112 | onMouseDown={(event) => { | 114 | 113 | event.preventDefault(); | 115 | 114 | }} | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/CustomSnoozeDialog.tsx -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -169,7 +169,6 @@ function CustomSnoozeDialog() { | 169 | 169 | ) : ( | 170 | 170 | <div className="grid grid-cols-1 gap-3 sm:grid-cols-2"> | 171 | 171 | <NumberField | 172 | | - className="gap-1.5" | 173 | 172 | id={`${id}-amount`} | 174 | 173 | min={0} | 175 | 174 | step="any" | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/DiffPanel.tsx +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -745,7 +745,8 @@ export default function DiffPanel({ | 745 | 745 | }} | 746 | 746 | > | 747 | 747 | <ComboboxTrigger | 748 | | - 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" | | 748 | + render={<Button variant="ghost-muted" size="xs" />} | | 749 | + className="min-w-0 max-w-48" | 749 | 750 | aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`} | 750 | 751 | > | 751 | 752 | <span className="min-w-0 truncate">{selectedGitSource.baseRef}</span> | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/LegacySidebar.tsx +4-5Lines changed: 4 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2794,30 +2794,29 @@ function ProjectSortMenu({ | 2794 | 2794 | <div className="px-2 py-1"> | 2795 | 2795 | <NumberField | 2796 | 2796 | aria-label="Visible thread count" | 2797 | | - className="w-28 gap-0" | | 2797 | + className="w-28" | 2798 | 2798 | max={MAX_SIDEBAR_THREAD_PREVIEW_COUNT} | 2799 | 2799 | min={MIN_SIDEBAR_THREAD_PREVIEW_COUNT} | 2800 | 2800 | onValueChange={handleThreadPreviewCountChange} | 2801 | 2801 | size="sm" | 2802 | 2802 | step={1} | 2803 | 2803 | value={threadPreviewCount} | 2804 | 2804 | > | 2805 | | - <NumberFieldGroup className="h-7 rounded-md sm:h-6.5"> | | 2805 | + <NumberFieldGroup> | 2806 | 2806 | <NumberFieldDecrement | 2807 | 2807 | aria-label="Decrease visible thread count" | 2808 | | - className="px-2 sm:px-2 [&_svg]:size-3.5" | | 2808 | + className="[&_svg]:size-3.5" | 2809 | 2809 | /> | 2810 | 2810 | <NumberFieldInput | 2811 | 2811 | aria-label="Visible thread count" | 2812 | | - className="h-7 w-9 grow-0 px-0 text-xs leading-7 sm:h-6.5 sm:leading-6.5" | 2813 | 2812 | inputMode="numeric" | 2814 | 2813 | onKeyDownCapture={(event) => { | 2815 | 2814 | event.stopPropagation(); | 2816 | 2815 | }} | 2817 | 2816 | /> | 2818 | 2817 | <NumberFieldIncrement | 2819 | 2818 | aria-label="Increase visible thread count" | 2820 | | - className="px-2 sm:px-2 [&_svg]:size-3.5" | | 2819 | + className="[&_svg]:size-3.5" | 2821 | 2820 | /> | 2822 | 2821 | </NumberFieldGroup> | 2823 | 2822 | </NumberField> | |
|