Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(layout): prevent dashboard overscroll chaining (#20904)
boojackd0db6298b526
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.cssindex eacf0ee854..6a7e1281af 100644--- a/frontend/src/assets/css/tailwind.css+++ b/frontend/src/assets/css/tailwind.css@@ -15,6 +15,10 @@color utility to any element that depends on these defaults.*/@layer base {+ html {+ overscroll-behavior-y: none;+ }+*,::after,::before,diff --git a/frontend/src/react/components/DashboardBodyShell.test.tsx b/frontend/src/react/components/DashboardBodyShell.test.tsxindex 57879df078..3cf27867eb 100644--- a/frontend/src/react/components/DashboardBodyShell.test.tsx+++ b/frontend/src/react/components/DashboardBodyShell.test.tsx@@ -106,6 +106,9 @@ describe("DashboardBodyShell", () => {expect(targets.content).toBeInstanceOf(HTMLDivElement);expect(targets.quickstart).toBeInstanceOf(HTMLDivElement);expect(targets.mainContainer?.id).toBe("bb-layout-main");+ expect(targets.mainContainer?.className).toContain("overscroll-y-contain");+ expect(targets.desktopSidebar?.className).toContain("overscroll-y-contain");+ expect(targets.mobileSidebar?.className).toContain("overscroll-y-contain");expect(harness.container.querySelector('[data-label="bb-main-body-wrapper"]')).not.toBeNull();diff --git a/frontend/src/react/components/DashboardBodyShell.tsx b/frontend/src/react/components/DashboardBodyShell.tsxindex 909a978360..5249bec97a 100644--- a/frontend/src/react/components/DashboardBodyShell.tsx+++ b/frontend/src/react/components/DashboardBodyShell.tsx@@ -72,7 +72,7 @@ export function DashboardBodyShell({><divref={mobileSidebarRef}- className="h-full overflow-y-auto bg-control-bg"+ className="h-full overflow-y-auto overscroll-y-contain bg-control-bg"/></div></div>@@ -113,7 +113,7 @@ export function DashboardBodyShell({<div className="flex w-52 flex-col bg-control-bg"><divref={desktopSidebarRef}- className="flex flex-1 flex-col overflow-y-auto py-0"+ className="flex flex-1 flex-col overflow-y-auto overscroll-y-contain py-0"/></div></aside>@@ -146,7 +146,7 @@ export function DashboardBodyShell({id="bb-layout-main"ref={mainContainerRef}className={cn(- "flex-1 overflow-y-auto",+ "flex-1 overflow-y-auto overscroll-y-contain",variant === "workspace" ? "md:min-w-0" : "min-w-0")}>