Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Prevent settings layout shifts with scrollbar gutters (#2960)
Julius Marmingeb0fa60a121bd
diff --git a/apps/web/src/components/settings/settingsLayout.tsx b/apps/web/src/components/settings/settingsLayout.tsxindex 391898b11..a825463b3 100644--- a/apps/web/src/components/settings/settingsLayout.tsx+++ b/apps/web/src/components/settings/settingsLayout.tsx@@ -127,7 +127,7 @@ export function SettingsPageContainer({className?: string;}) {return (- <div className="flex-1 overflow-y-auto p-6 sm:p-8">+ <div className="scrollbar-gutter-both flex-1 overflow-y-auto p-6 sm:p-8"><div className={cn("mx-auto flex w-full max-w-3xl flex-col gap-8", className)}>{children}</div>diff --git a/apps/web/src/components/ui/scroll-area.tsx b/apps/web/src/components/ui/scroll-area.tsxindex f9a363867..d6f178a1f 100644--- a/apps/web/src/components/ui/scroll-area.tsx+++ b/apps/web/src/components/ui/scroll-area.tsx@@ -29,7 +29,7 @@ function ScrollArea({chainVerticalScroll && "overscroll-y-auto",scrollFade &&"mask-t-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-start)))] mask-b-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-end)))] mask-l-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-start)))] mask-r-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-end)))] [--fade-size:1.5rem]",- scrollbarGutter && "[scrollbar-gutter:stable]",+ scrollbarGutter && "scrollbar-gutter-stable",hideScrollbars &&"[-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",)}