🪢 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): page tabs match the tab bar style (#18381)
Trang Nguyencd88e7503c1f
diff --git a/web/src/components/layouts/page-header.tsx b/web/src/components/layouts/page-header.tsxindex 7383b5bb71..ff34ab1735 100644--- a/web/src/components/layouts/page-header.tsx+++ b/web/src/components/layouts/page-header.tsx@@ -252,12 +252,7 @@ const PageHeader = ({</div></div>- {tabsProps && (- <PageTabs- {...tabsProps}- className={cn("ml-2", tabsProps.className)}- />- )}+ {tabsProps && <PageTabs {...tabsProps} />}</div></div></div>diff --git a/web/src/components/layouts/page-tabs.tsx b/web/src/components/layouts/page-tabs.tsxindex d6b596f2e0..77072945d8 100644--- a/web/src/components/layouts/page-tabs.tsx+++ b/web/src/components/layouts/page-tabs.tsx@@ -41,15 +41,15 @@ export const PageTabs = ({<div className={cn(scrollable && "-mx-1 overflow-x-auto px-1", className)}><divclassName={cn(- "inline-flex h-8 items-center justify-start",+ "inline-flex h-9 items-center justify-start",listClassName,)}>{tabs.map((tab) => {const tabClassName = cn(- "hover:bg-muted/50 focus-visible:ring-ring text-muted-foreground font-bold inline-flex h-full items-center justify-center rounded-none border-b-4 border-transparent px-2 py-0.5 text-sm whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden",+ "focus-visible:ring-ring text-muted-foreground font-bold inline-flex h-full items-center justify-center rounded-none border-b-2 border-transparent px-3 py-0.5 text-base whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden",tab.value === activeTab- ? "border-primary-accent text-foreground bg-transparent shadow-none"+ ? "border-foreground-secondary text-foreground bg-transparent shadow-none": "",tab.disabled && "pointer-events-none opacity-50",tab.className,diff --git a/web/src/components/layouts/page.tsx b/web/src/components/layouts/page.tsxindex b0302de590..5803a2d48f 100644--- a/web/src/components/layouts/page.tsx+++ b/web/src/components/layouts/page.tsx@@ -45,7 +45,11 @@ const Page = ({leadingControl={headerProps.leadingControl}/>) : (- <PageHeader {...headerProps} container={false} className="top-0" />+ <PageHeader+ {...headerProps}+ container={false}+ className={cn("top-0", headerProps.className)}+ />)}</header>{isMobile && <MobilePageTitle headerProps={headerProps} />}diff --git a/web/src/features/dashboard/DashboardsPage.tsx b/web/src/features/dashboard/DashboardsPage.tsxindex e03b4a243b..055f4edfdb 100644--- a/web/src/features/dashboard/DashboardsPage.tsx+++ b/web/src/features/dashboard/DashboardsPage.tsx@@ -17,6 +17,7 @@ export default function DashboardsPage() {return (<PageheaderProps={{+ className: "border-b-0",title: "Dashboards",help: {description: "Manage and create dashboards for your project.",diff --git a/web/src/features/widgets/WidgetsPage.tsx b/web/src/features/widgets/WidgetsPage.tsxindex bbb1b143a3..f39d47c2f9 100644--- a/web/src/features/widgets/WidgetsPage.tsx+++ b/web/src/features/widgets/WidgetsPage.tsx@@ -17,6 +17,7 @@ export default function WidgetsPage() {return (<PageheaderProps={{+ className: "border-b-0",title: "Widgets",help: {description: "Manage and create widgets for your dashboard.",