🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(search-bar): placeholder no longer runs under Ask AI on narrow widths (#15323)
Nikita Kabardindd1f835d95c7
diff --git a/web/src/features/search-bar/components/SearchComposer.tsx b/web/src/features/search-bar/components/SearchComposer.tsxindex eacc659db4..06d85abf71 100644--- a/web/src/features/search-bar/components/SearchComposer.tsx+++ b/web/src/features/search-bar/components/SearchComposer.tsx@@ -1294,8 +1294,17 @@ export function SearchComposer({{draft.length === 0 && (<divclassName={cn(+ // Bound the right edge (not just pr-*) so `truncate` has a width+ // to clip against — otherwise the placeholder grows to its full+ // text width and runs under the top-right "Ask AI" button. The+ // reserved gap matches the surface's pr-20/pr-8."text-muted-foreground pointer-events-none absolute top-1/2 left-3 -translate-y-1/2 truncate font-mono text-xs",- onActivateAi !== undefined ? "pr-20" : "pr-8",+ // Mirror the surface's right reservation exactly: the "Ask AI"+ // button (right-20) is hidden while diagnostics show, when the+ // error icon takes over the top-right corner (right-8).+ onActivateAi !== undefined && !showGlobalDiagnostics+ ? "right-20"+ : "right-8",)}title={COMPOSER_PLACEHOLDER}>