🪢 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(web): tree panel header padding and mono search placeholders (#18272)
Trang Nguyenfd776e17e77b
diff --git a/web/src/features/traces/components/TraceLogView/LogViewToolbar.tsx b/web/src/features/traces/components/TraceLogView/LogViewToolbar.tsxindex d6316d0053..ba0124a680 100644--- a/web/src/features/traces/components/TraceLogView/LogViewToolbar.tsx+++ b/web/src/features/traces/components/TraceLogView/LogViewToolbar.tsx@@ -138,7 +138,7 @@ export const LogViewToolbar = memo(function LogViewToolbar({<CommandInputshowBorder={false}placeholder="Search observations..."- className="h-7 border-0 focus:ring-0"+ className="placeholder:text-muted-foreground h-7 border-0 text-xs placeholder:font-mono focus:ring-0"value={searchQuery}onValueChange={onSearchChange}onFocus={onSearchFocus}diff --git a/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx b/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsxindex 1da0cfc93a..d42efb748a 100644--- a/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx+++ b/web/src/features/traces/components/TracePanelNavigationHeader/TracePanelNavigationHeader.tsx@@ -27,7 +27,7 @@ import {ChevronDown,FoldVertical,UnfoldVertical,- MoreHorizontal,+ MoreVertical,} from "lucide-react";import {DropdownMenu,@@ -98,7 +98,7 @@ function TracePanelNavigationHeaderExpanded({const analyticsDimensions = useTraceAnalyticsDimensions();const [headerContainerRef, headerContainerSize] =useElementSize<HTMLDivElement>();- const isSearchWrapped = (headerContainerSize?.width ?? Infinity) <= 439;+ const isSearchWrapped = (headerContainerSize?.width ?? Infinity) <= 299;// When the detail (info) panel is closed, the tree/timeline owns the whole// surface — so the left "collapse panel" toggle would only shrink the one@@ -189,14 +189,14 @@ function TracePanelNavigationHeaderExpanded({<divkey="search"className={cn(- "@max-[439px]/navheader:bg-background @max-[439px]/navheader:focus-within:border-ring @max-[439px]/navheader:focus-within:ring-ring/30 relative col-start-2 row-start-1 min-w-0 @max-[439px]/navheader:col-span-3 @max-[439px]/navheader:col-start-1 @max-[439px]/navheader:row-start-2 @max-[439px]/navheader:ml-1 @max-[439px]/navheader:rounded-md @max-[439px]/navheader:border @max-[439px]/navheader:shadow-xs @max-[439px]/navheader:focus-within:ring-2 @max-[439px]/navheader:[&>div]:p-0",+ "@max-[299px]/navheader:bg-background @max-[299px]/navheader:focus-within:border-ring @max-[299px]/navheader:focus-within:ring-ring/30 relative col-start-2 row-start-1 min-w-0 @max-[299px]/navheader:col-span-3 @max-[299px]/navheader:col-start-1 @max-[299px]/navheader:row-start-2 @max-[299px]/navheader:ml-1 @max-[299px]/navheader:rounded-md @max-[299px]/navheader:border @max-[299px]/navheader:shadow-xs @max-[299px]/navheader:focus-within:ring-2 @max-[299px]/navheader:[&>div]:p-0",isDetailPanelCollapsed && "pl-1",)}><CommandInputshowBorder={false}placeholder="Search"- className="@max-[439px]/navheader:placeholder:text-muted-foreground h-7 min-w-0 border-0 pr-0 focus:ring-0 @max-[439px]/navheader:h-[1.625rem]"+ className="@max-[299px]/navheader:placeholder:text-muted-foreground placeholder:text-muted-foreground h-7 min-w-0 border-0 pr-0 text-xs placeholder:font-mono focus:ring-0 @max-[299px]/navheader:h-[1.625rem]"value={searchInputValue}onValueChange={setSearchInputValue}onKeyDown={handleSearchKeyDown}@@ -210,7 +210,7 @@ function TracePanelNavigationHeaderExpanded({it fits. Search moves below the controls before that switch collapses,and remains the same input across every layout. */}<div ref={headerContainerRef} className="@container/navheader">- <div className="grid min-h-8 grid-cols-[auto_minmax(0,1fr)_auto] items-center pr-2 pl-1 @max-[439px]/navheader:min-h-0 @max-[439px]/navheader:gap-y-1 @max-[439px]/navheader:pt-1 @max-[439px]/navheader:pb-1.5">+ <div className="grid min-h-8 grid-cols-[auto_minmax(0,1fr)_auto] items-center py-1 pr-3 pl-1 @max-[299px]/navheader:min-h-0 @max-[299px]/navheader:gap-y-1 @max-[299px]/navheader:pt-1 @max-[299px]/navheader:pb-1.5">{/* Panel Toggle Button; special p-0.5 offset to pixel align with closedversion. Hidden while the detail panel is closed (nothing useful tocollapse the full-width tree/timeline into). */}@@ -262,7 +262,7 @@ function TracePanelNavigationHeaderExpanded({aria-label="More options"className="h-7 w-7">- <MoreHorizontal className="h-3.5 w-3.5" />+ <MoreVertical className="h-3.5 w-3.5" /></Button></DropdownMenuTrigger><DropdownMenuContent align="center" className="w-64">