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 4a22680b63f4..8371d0d9cdff 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 editCell(row, field.key, event.target.value) } diff --git a/scripts/lint-restyle-ceiling.ts b/scripts/lint-restyle-ceiling.ts index 53e91c630730..349949848cb0 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 = 1060; +export const RESTYLE_CEILING = 1043; const RULE = "shadcn(no-restyle)";