Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(web): 12px mono font for shared search inputs (#18351)

Trang Nguyena1f1899fcd2a
diff --git a/web/src/components/design-system/SearchInput/SearchInput.tsx b/web/src/components/design-system/SearchInput/SearchInput.tsx
index 307864d524..f14efb172d 100644
--- a/web/src/components/design-system/SearchInput/SearchInput.tsx
+++ b/web/src/components/design-system/SearchInput/SearchInput.tsx
@@ -80,7 +80,7 @@ export const SearchInput = React.forwardRef<HTMLInputElement, SearchInputProps>(
onKeyDown={(event) => {
if (event.key === "Enter") onSubmit(value);
}}
- className="placeholder:text-foreground-tertiary disabled:bg-muted/50 min-w-0 flex-1 appearance-none border-0 bg-transparent py-1 pr-2 pl-0 text-sm shadow-none outline-hidden focus:border-0 focus:shadow-none focus:ring-0 focus:ring-offset-0 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-search-cancel-button]:cursor-pointer"
+ className="placeholder:text-foreground-tertiary disabled:bg-muted/50 min-w-0 flex-1 appearance-none border-0 bg-transparent py-1 pr-2 pl-0 font-mono text-xs shadow-none outline-hidden focus:border-0 focus:shadow-none focus:ring-0 focus:ring-offset-0 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-search-cancel-button]:cursor-pointer"
/>
{dropdown && (
<DropdownMenu>
diff --git a/web/src/components/ui/input-command.tsx b/web/src/components/ui/input-command.tsx
index a73de3f6e3..d15a196cbb 100644
--- a/web/src/components/ui/input-command.tsx
+++ b/web/src/components/ui/input-command.tsx
@@ -43,7 +43,7 @@ const InputCommandInput = React.forwardRef<
<CommandPrimitive.Input
ref={ref}
className={cn(
- "placeholder:text-foreground-tertiary flex h-8 w-full rounded border-transparent bg-transparent py-3 text-sm outline-hidden focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50",
+ "placeholder:text-foreground-tertiary flex h-8 w-full rounded border-transparent bg-transparent py-3 font-mono text-xs outline-hidden focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}