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 … · aaditagrawal/t3code@3f40d1a

This repository was archived by the owner on Oct 10, 2026. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src
    • browser
      • BrowserDeviceToolbar.tsx
    • components
      • BranchToolbarBranchSelector.tsx
      • BranchToolbarEnvModeSelector.tsx
      • BranchToolbarEnvironmentSelector.tsx
      • CommandPalette.tsx
      • CommandPaletteContent.tsx
      • CommandPaletteResults.tsx
      • CustomSnoozeDialog.tsx
      • DiffPanel.tsx
      • LegacySidebar.tsx
      • Sidebar.tsx
      • chat
        • ComposerCommandMenu.tsx
      • preview
        • PreviewChromeRow.tsx
      • search
        • ProjectContentSearchDialog.tsx
      • settings
        • ConnectionsSettings.tsx
        • KeybindingsSettings.tsx
        • ProjectFaviconPickerDialog.tsx
        • ProviderAccentColorPicker.tsx
        • ProviderSettingsForm.tsx
        • StorageSettings.tsx
        • ThemeColorPicker.tsx
      • ui
        • autocomplete.tsx
  • scripts
    • lint-restyle-ceiling.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/browser/BrowserDeviceToolbar.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/browser/BrowserDeviceToolbar.tsx
+9-10Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,7 @@ export function BrowserDeviceToolbar({
189189
<SelectTrigger
190190
variant="ghost"
191191
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")}
196193
aria-label="Browser device preset"
197194
>
198195
<SelectValue />
@@ -227,7 +224,8 @@ export function BrowserDeviceToolbar({
227224
nativeInput
228225
type="number"
229226
inputMode="numeric"
230-
size="sm"
227+
size="compact"
228+
font="mono"
231229
min={PREVIEW_VIEWPORT_MIN_DIMENSION}
232230
max={PREVIEW_VIEWPORT_MAX_DIMENSION}
233231
value={presentedSize.width}
@@ -245,16 +243,17 @@ export function BrowserDeviceToolbar({
245243
aria-label="Viewport width"
246244
aria-invalid={!customValid}
247245
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",
250248
)}
251249
/>
252250
<span className="text-xs text-muted-foreground">×</span>
253251
<Input
254252
nativeInput
255253
type="number"
256254
inputMode="numeric"
257-
size="sm"
255+
size="compact"
256+
font="mono"
258257
min={PREVIEW_VIEWPORT_MIN_DIMENSION}
259258
max={PREVIEW_VIEWPORT_MAX_DIMENSION}
260259
value={presentedSize.height}
@@ -272,8 +271,8 @@ export function BrowserDeviceToolbar({
272271
aria-label="Viewport height"
273272
aria-invalid={!customValid}
274273
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",
277276
)}
278277
/>
279278
</form>
Collapse file

‎apps/web/src/components/BranchToolbarBranchSelector.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/BranchToolbarBranchSelector.tsx
+10-4Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ export function BranchToolbarBranchSelector({
611611
key={itemValue}
612612
index={index}
613613
value={itemValue}
614-
className="pe-2"
615614
onClick={() => selectPickerItem(itemValue)}
616615
>
617616
<div className="flex min-w-0 items-center gap-2 py-1">
@@ -633,7 +632,6 @@ export function BranchToolbarBranchSelector({
633632
key={itemValue}
634633
index={index}
635634
value={itemValue}
636-
className="pe-1.5"
637635
onClick={() => selectPickerItem(itemValue)}
638636
>
639637
<span className="truncate">Create new ref &quot;{newRefName}&quot;</span>
@@ -719,9 +717,17 @@ export function BranchToolbarBranchSelector({
719717
onContextMenu={(event) => handleBranchContextMenu(event, resolvedActiveBranch)}
720718
>
721719
<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.
723729
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",
725731
displayMode === "panel" && THREAD_DETAILS_PANEL_SELECT_ROW_CLASS,
726732
)}
727733
disabled={isInitialBranchesLoadPending || isBranchActionPending}
Collapse file

‎apps/web/src/components/BranchToolbarEnvModeSelector.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/BranchToolbarEnvModeSelector.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
139139
variant="ghost"
140140
size={displayMode === "panel" ? "default" : "xs"}
141141
className={cn(
142-
"min-w-0 shrink font-normal text-xs!",
142+
"min-w-0 shrink",
143143
displayMode === "panel" && THREAD_DETAILS_PANEL_SELECT_ROW_CLASS,
144144
)}
145145
aria-label="Workspace"
Collapse file

‎apps/web/src/components/BranchToolbarEnvironmentSelector.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/BranchToolbarEnvironmentSelector.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
108108
variant="ghost"
109109
size={displayMode === "panel" ? "default" : "xs"}
110110
className={cn(
111-
"min-w-0 max-w-full font-normal text-xs!",
111+
"min-w-0 max-w-full",
112112
displayMode === "panel" && THREAD_DETAILS_PANEL_SELECT_ROW_CLASS,
113113
)}
114114
aria-label="Run on"
Collapse file

‎apps/web/src/components/CommandPalette.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPalette.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ function CommandPaletteDialog(props: {
626626
? "Search project contents"
627627
: "Command palette"
628628
}
629-
className={cn("overflow-hidden p-0", props.mode === "content" && "h-105")}
629+
className={cn("overflow-hidden", props.mode === "content" && "h-105")}
630630
data-command-palette="true"
631631
data-palette-mode={props.mode}
632632
data-testid="command-palette"
Collapse file

‎apps/web/src/components/CommandPaletteContent.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPaletteContent.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function CommandPaletteContent({
5050
{inputAccessory}
5151
</div>
5252
<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">
5454
<div className="flex items-center gap-3">
5555
<KbdGroup>
5656
<Kbd>
Collapse file

‎apps/web/src/components/CommandPaletteResults.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPaletteResults.tsx
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function CommandPaletteResults(props: CommandPaletteResultsProps) {
4141
<CommandList>
4242
{props.groups.map((group) => (
4343
<CommandGroup items={group.items} key={group.value}>
44-
<CommandGroupLabel className="ps-[9px]">{group.label}</CommandGroupLabel>
44+
<CommandGroupLabel>{group.label}</CommandGroupLabel>
4545
<CommandCollection>
4646
{(item) =>
4747
item.disabled ? (
@@ -109,7 +109,6 @@ function CommandPaletteResultRow(props: {
109109
<CommandItem
110110
value={props.item.value}
111111
active={props.isActive}
112-
className="gap-2"
113112
onMouseDown={(event) => {
114113
event.preventDefault();
115114
}}
Collapse file

‎apps/web/src/components/CustomSnoozeDialog.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/CustomSnoozeDialog.tsx
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ function CustomSnoozeDialog() {
169169
) : (
170170
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2">
171171
<NumberField
172-
className="gap-1.5"
173172
id={`${id}-amount`}
174173
min={0}
175174
step="any"
Collapse file

‎apps/web/src/components/DiffPanel.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/DiffPanel.tsx
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ export default function DiffPanel({
745745
}}
746746
>
747747
<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"
749750
aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`}
750751
>
751752
<span className="min-w-0 truncate">{selectedGitSource.baseRef}</span>
Collapse file

‎apps/web/src/components/LegacySidebar.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/LegacySidebar.tsx
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,30 +2794,29 @@ function ProjectSortMenu({
27942794
<div className="px-2 py-1">
27952795
<NumberField
27962796
aria-label="Visible thread count"
2797-
className="w-28 gap-0"
2797+
className="w-28"
27982798
max={MAX_SIDEBAR_THREAD_PREVIEW_COUNT}
27992799
min={MIN_SIDEBAR_THREAD_PREVIEW_COUNT}
28002800
onValueChange={handleThreadPreviewCountChange}
28012801
size="sm"
28022802
step={1}
28032803
value={threadPreviewCount}
28042804
>
2805-
<NumberFieldGroup className="h-7 rounded-md sm:h-6.5">
2805+
<NumberFieldGroup>
28062806
<NumberFieldDecrement
28072807
aria-label="Decrease visible thread count"
2808-
className="px-2 sm:px-2 [&_svg]:size-3.5"
2808+
className="[&_svg]:size-3.5"
28092809
/>
28102810
<NumberFieldInput
28112811
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"
28132812
inputMode="numeric"
28142813
onKeyDownCapture={(event) => {
28152814
event.stopPropagation();
28162815
}}
28172816
/>
28182817
<NumberFieldIncrement
28192818
aria-label="Increase visible thread count"
2820-
className="px-2 sm:px-2 [&_svg]:size-3.5"
2819+
className="[&_svg]:size-3.5"
28212820
/>
28222821
</NumberFieldGroup>
28232822
</NumberField>

0 commit comments

Comments
0 (0)
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.