🪢 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(ui): main content scrolling should not bounce (#10347)
Marc Klingence04e9eb91d4
diff --git a/web/src/components/layouts/layout.tsx b/web/src/components/layouts/layout.tsxindex 9c9901a2aa..17588179dd 100644--- a/web/src/components/layouts/layout.tsx+++ b/web/src/components/layouts/layout.tsx@@ -379,7 +379,9 @@ export function ResizableContent({ children }: PropsWithChildren) {if (!isDesktop) {return (<>- <main className="h-full flex-1">{children}</main>+ <main className="h-full flex-1" style={{ overscrollBehaviorY: "none" }}>+ {children}+ </main><Drawer open={open} onOpenChange={setOpen} forceDirection="bottom"><DrawerContent@@ -408,7 +410,11 @@ export function ResizableContent({ children }: PropsWithChildren) {// 👉 DESKTOP: if drawer isn't open, render only the main content (like before)if (isDesktop && !open) {- return <main className="h-full flex-1">{children}</main>;+ return (+ <main className="h-full flex-1" style={{ overscrollBehaviorY: "none" }}>+ {children}+ </main>+ );}const mainDefault = 70;@@ -417,7 +423,10 @@ export function ResizableContent({ children }: PropsWithChildren) {return (<ResizablePanelGroup direction="horizontal" className="flex h-full w-full"><ResizablePanel defaultSize={mainDefault} minSize={30}>- <main className="relative h-full w-full overflow-scroll">+ <main+ className="relative h-full w-full overflow-scroll"+ style={{ overscrollBehaviorY: "none" }}+ >{children}</main></ResizablePanel>diff --git a/web/src/styles/globals.css b/web/src/styles/globals.cssindex a71f5685c6..a20aba0842 100644--- a/web/src/styles/globals.css+++ b/web/src/styles/globals.css@@ -177,6 +177,7 @@--color-4: oklch(80.2% 0.134 225);--color-5: oklch(90.7% 0.231 133);}+.theme {--animate-rainbow: rainbow var(--speed, 2s) infinite linear;}@@ -185,6 +186,7 @@@layer base {* {@apply border-border;+ overscroll-behavior-y: none;}body {@@ -240,6 +242,7 @@0% {background-position: 0%;}+100% {background-position: 200%;}