Skip to content

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

fix(web): Ask AI button stays centred in the 32px search bar (#18318)

Trang Nguyen24ed6d1bfd26
diff --git a/web/src/features/search-bar/components/SearchComposer.tsx b/web/src/features/search-bar/components/SearchComposer.tsx
index a25a5e385c..233c8b0f6e 100644
--- a/web/src/features/search-bar/components/SearchComposer.tsx
+++ b/web/src/features/search-bar/components/SearchComposer.tsx
@@ -1530,7 +1530,7 @@ export function SearchComposer({
onActivateAi();
}}
className={cn(
- "absolute top-1.5 right-2 z-20 inline-flex items-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5",
+ "absolute top-0.75 right-2 z-20 inline-flex items-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5",
"bg-background text-muted-foreground font-sans text-xs",
"hover:border-border hover:text-foreground hover:bg-accent transition-colors",
// Match the app's focus ring (ring-ring) instead of the browser's