Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Stop the landing site header jittering while scrolling in Safari (#3450)
Luke Vellaab38e95c3465
diff --git a/apps/landing/src/app/[locale]/(main)/layout.tsx b/apps/landing/src/app/[locale]/(main)/layout.tsxindex 0d0c38007..a38d04bf8 100644--- a/apps/landing/src/app/[locale]/(main)/layout.tsx+++ b/apps/landing/src/app/[locale]/(main)/layout.tsx@@ -34,7 +34,7 @@ export default async function Root(props: {const { t } = await getTranslation(locale, ["common", "home"]);return (- <div className="relative z-10 flex min-h-full flex-col overflow-x-clip">+ <div className="relative z-10 flex min-h-full flex-col"><SiteHeader><div className="mx-auto flex w-full max-w-6xl items-center px-4 py-3 sm:px-6"><div className="flex grow items-center gap-x-12">@@ -98,11 +98,16 @@ export default async function Root(props: {</div></div></SiteHeader>- <div className="mx-auto flex w-full max-w-6xl grow flex-col space-y-8 px-4 pb-4 sm:px-6 sm:pb-6">- <section className="relative grow">{children}</section>- <footer className="border-t pt-8 sm:pt-16">- <Footer locale={locale} />- </footer>+ {/* The clip stays off the header's ancestors: in Safari a sticky element+ under an overflow clip is repositioned on the main thread and+ jitters while scrolling. */}+ <div className="flex grow flex-col overflow-x-clip">+ <div className="mx-auto flex w-full max-w-6xl grow flex-col space-y-8 px-4 pb-4 sm:px-6 sm:pb-6">+ <section className="relative grow">{children}</section>+ <footer className="border-t pt-8 sm:pt-16">+ <Footer locale={locale} />+ </footer>+ </div></div></div>);