Skip to content

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

fix(header): breakpoint header behaviour (#5555)

marliessophie652e96ee9d7a
diff --git a/web/src/components/layouts/page-header.tsx b/web/src/components/layouts/page-header.tsx
index 4021b6d095..d6d0e2cd0f 100644
--- a/web/src/components/layouts/page-header.tsx
+++ b/web/src/components/layouts/page-header.tsx
@@ -31,7 +31,7 @@ const PageHeader = ({
<div className="border-b">
<div
className={cn(
- "flex min-h-12 items-center gap-3 px-3 py-2 md:max-h-12",
+ "flex min-h-12 items-center gap-3 px-3 py-2",
container && "lg:container",
)}
>
@@ -47,13 +47,13 @@ const PageHeader = ({
<div className="bg-muted">
<div
className={cn(
- "flex min-h-16 items-center justify-between p-3 md:max-h-16",
+ "flex min-h-12 items-center justify-between p-3",
container && "lg:container",
)}
>
- <div className="flex-no-wrap flex min-h-16 items-center gap-1 md:max-h-16">
+ <div className="flex-no-wrap flex min-h-12 items-center gap-1">
{itemType && <ItemBadge type={itemType} showLabel />}
- <h2 className="line-clamp-2 h-16 min-w-0 place-content-center text-lg font-semibold leading-7">
+ <h2 className="line-clamp-2 h-14 min-w-0 place-content-center text-lg font-semibold leading-7">
{title}
</h2>
{help && (
diff --git a/web/src/pages/project/[projectId]/prompts/[promptName]/metrics.tsx b/web/src/pages/project/[projectId]/prompts/[promptName]/metrics.tsx
index 1404f60bda..5fb28bef64 100644
--- a/web/src/pages/project/[projectId]/prompts/[promptName]/metrics.tsx
+++ b/web/src/pages/project/[projectId]/prompts/[promptName]/metrics.tsx
@@ -376,6 +376,7 @@ export default function PromptVersionTable() {
<Page
headerProps={{
title: promptName,
+ itemType: "PROMPT",
help: {
description:
"You can use this prompt within your application through the Langfuse SDKs and integrations. Refer to the documentation for more information.",
@@ -392,7 +393,7 @@ export default function PromptVersionTable() {
},
{ name: `Metrics` },
],
- actionButtonsLeft: (
+ actionButtonsRight: (
<>
<Tabs value="metrics">
<TabsList>