diff --git a/apps/web/src/components/device/DeviceToolsPanel.tsx b/apps/web/src/components/device/DeviceToolsPanel.tsx index 79f84529aebb..39b8123cd03b 100644 --- a/apps/web/src/components/device/DeviceToolsPanel.tsx +++ b/apps/web/src/components/device/DeviceToolsPanel.tsx @@ -493,7 +493,8 @@ function SubmitRow(props: { > updateChoice(descriptor.key, choice.key, { id: event.target.value })} placeholder="value" - className="w-28 font-mono" + font="mono" + className="w-28" spellCheck={false} aria-label="Choice value" /> @@ -230,7 +231,8 @@ export function CustomModelEditor({ value={descriptor.id} onChange={(event) => updateDescriptor(descriptor.key, { id: event.target.value })} placeholder="optionId" - className="w-36 font-mono" + font="mono" + className="w-36" spellCheck={false} aria-label="Option id" /> diff --git a/apps/web/src/components/settings/KeybindingsSettings.tsx b/apps/web/src/components/settings/KeybindingsSettings.tsx index db38cdd9e375..e8ab04f85a6c 100644 --- a/apps/web/src/components/settings/KeybindingsSettings.tsx +++ b/apps/web/src/components/settings/KeybindingsSettings.tsx @@ -320,7 +320,7 @@ function WhenVariableSelect({ return ( onChange(role, event.currentTarget.value)} diff --git a/apps/web/src/components/ui/input.tsx b/apps/web/src/components/ui/input.tsx index cae3dfe62852..a5810308b6e8 100644 --- a/apps/web/src/components/ui/input.tsx +++ b/apps/web/src/components/ui/input.tsx @@ -7,6 +7,8 @@ import { cn } from "~/lib/utils"; type InputProps = Omit, "size"> & { size?: "sm" | "compact" | "default" | "lg" | number; + /** Monospace with tabular digits, for paths, commands, colors and numbers. */ + font?: "default" | "mono"; unstyled?: boolean; nativeInput?: boolean; }; @@ -14,6 +16,7 @@ type InputProps = Omit & { icon?: React.ReactNode }) { return ( @@ -141,15 +146,18 @@ function SelectPopup({ function SelectItem({ className, children, + font = "default", hideIndicator: _hideIndicator = false, ...props }: SelectPrimitive.Item.Props & { + font?: "default" | "mono"; hideIndicator?: boolean; }) { return ( editCell(row, field.key, event.target.value) } diff --git a/scripts/lint-restyle-ceiling.ts b/scripts/lint-restyle-ceiling.ts index dccb0d540d2d..0ea57890b1e5 100644 --- a/scripts/lint-restyle-ceiling.ts +++ b/scripts/lint-restyle-ceiling.ts @@ -8,7 +8,7 @@ import * as NodeURL from "node:url"; // components/ui exports are migrated to variants (see vite.config.ts). This gate keeps the // count from growing: CI fails when findings exceed the ceiling. Lower the ceiling when you // migrate a file, and delete this script when the rule becomes an error. -export const RESTYLE_CEILING = 1106; +export const RESTYLE_CEILING = 1089; const RULE = "shadcn(no-restyle)";