Skip to content

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

feat(ui): keep logo static on large screens while scrolling the main menu (#571)

Gokul Js7cc52b3c8e58
diff --git a/src/components/layouts/layout.tsx b/src/components/layouts/layout.tsx
index ab7a79c07f..f5fcc7f488 100644
--- a/src/components/layouts/layout.tsx
+++ b/src/components/layouts/layout.tsx
@@ -293,10 +293,10 @@ export default function Layout(props: PropsWithChildren) {
{/* Static sidebar for desktop */}
<div className="hidden xl:fixed xl:inset-y-0 xl:z-50 xl:flex xl:w-72 xl:flex-col">
{/* Sidebar component, swap this element with another sidebar if you like */}
- <div className="flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-200 bg-white px-6 pb-3 pt-7">
- <LangfuseLogo size="xl" className="mb-4" />
- <nav className="flex flex-1 flex-col">
- <ul role="list" className="flex flex-1 flex-col gap-y-4">
+ <div className="flex h-screen grow flex-col gap-y-5 border-r border-gray-200 bg-white pt-7">
+ <LangfuseLogo size="xl" className="mb-2 px-6" />
+ <nav className="flex flex-1 flex-col overflow-y-auto px-6 pb-3">
+ <ul role="list" className="flex flex-col gap-y-4">
<li>
<ul role="list" className="-mx-2 space-y-1">
{navigation.map((item) => (
diff --git a/src/styles/globals.css b/src/styles/globals.css
index 9ab9ee91cc..a38d60fba1 100644
--- a/src/styles/globals.css
+++ b/src/styles/globals.css
@@ -72,6 +72,7 @@
* {
@apply border-border;
}
+
body {
@apply bg-background text-foreground;
font-feature-settings:
@@ -81,9 +82,9 @@
html,
body,
- body > div:first-child,
+ body>div:first-child,
div#__next,
- div#__next > div {
+ div#__next>div {
height: 100%;
}
-}
+}
\ No newline at end of file