Skip to content

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

chore(ui): responsive layout (#1126)

Marc Klingen9d49bbe98749
diff --git a/src/components/layouts/header.tsx b/src/components/layouts/header.tsx
index e005252366..7747acdee1 100644
--- a/src/components/layouts/header.tsx
+++ b/src/components/layouts/header.tsx
@@ -40,7 +40,7 @@ export default function Header({
[...props.breadcrumb.map((i) => i.href).filter(Boolean)].pop();
return (
- <div className={cn(level === "h2" ? "mb-8" : "mb-1")}>
+ <div className={cn(level === "h2" ? "mb-4" : "mb-1")}>
<div>
{backHref ? (
<nav className="sm:hidden" aria-label="Back">
diff --git a/src/components/layouts/layout.tsx b/src/components/layouts/layout.tsx
index aa3ab31466..0067347e75 100644
--- a/src/components/layouts/layout.tsx
+++ b/src/components/layouts/layout.tsx
@@ -492,21 +492,21 @@ export default function Layout(props: PropsWithChildren) {
<Info className="h-4 w-4" />
<span className="font-semibold">DEMO (view-only)</span>
</div>
- <div>Live data from the Langfuse Q&A Chatbot.</div>
+ <div>Use demo RAG chat to see live data in this project.</div>
</div>
<Button size="sm" asChild className="ml-2">
<Link
href={
env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "EU"
- ? "https://langfuse.com/docs/qa-chatbot"
- : "https://docs-staging.langfuse.com/docs/qa-chatbot"
+ ? "https://langfuse.com/docs/demo"
+ : "https://docs-staging.langfuse.com/docs/demo"
}
target="_blank"
>
{env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "EU"
- ? "Q&A Chatbot ↗"
- : "Q&A Chatbot (staging) ↗"}
+ ? "Use Chat ↗"
+ : "Use Chat (staging) ↗"}
</Link>
</Button>
</div>
diff --git a/src/features/feedback/component/FeedbackButton.tsx b/src/features/feedback/component/FeedbackButton.tsx
index 75177a7d84..c92790420e 100644
--- a/src/features/feedback/component/FeedbackButton.tsx
+++ b/src/features/feedback/component/FeedbackButton.tsx
@@ -90,13 +90,13 @@ export function FeedbackButtonWrapper({
</DialogTrigger>
<DialogContent>
<DialogHeader>
- <DialogTitle className="mb-5">{title}</DialogTitle>
+ <DialogTitle>{title}</DialogTitle>
</DialogHeader>
<Form {...form}>
<form
// eslint-disable-next-line @typescript-eslint/no-misused-promises
onSubmit={form.handleSubmit(onSubmit)}
- className="space-y-8"
+ className="space-y-4"
>
<FormField
control={form.control}
diff --git a/src/pages/project/[projectId]/index.tsx b/src/pages/project/[projectId]/index.tsx
index c1d70eae6a..52c3bb1bd1 100644
--- a/src/pages/project/[projectId]/index.tsx
+++ b/src/pages/project/[projectId]/index.tsx
@@ -95,19 +95,19 @@ export default function Start() {
return (
<div className="md:container">
<Header title={project?.name ?? "Dashboard"} />
- <div className="flex items-center justify-between">
+ <div className="flex flex-wrap items-center justify-between">
<DatePickerWithRange
dateRange={dateRange}
setAgg={setAgg}
setDateRangeAndOption={setDateRangeAndOption}
selectedOption={selectedOption}
- className=" max-w-full overflow-x-auto"
+ className="max-w-full overflow-x-auto"
/>
<FeedbackButtonWrapper
- className="border-box"
title="Request Chart"
- description="Your feedback matters! Let us know what additional data or metrics you'd like to see in your dashboard."
+ description="Your feedback matters! Let the Langfuse team know what additional data or metrics you'd like to see in your dashboard."
type="dashboard"
+ className="hidden md:flex"
>
<Button
id="date"
@@ -117,7 +117,7 @@ export default function Start() {
}
>
<BarChart2
- className="h-6 w-6 shrink-0 text-gray-700 group-hover:text-indigo-600"
+ className="hidden h-6 w-6 shrink-0 text-gray-700 group-hover:text-indigo-600 lg:block"
aria-hidden="true"
/>
Request Chart