fix: remove disruptive TurboStarter promo dialog and fix horizontal overflow
- Remove BuyCtaDialog import/usage from root layout (TurboStarter boilerplate promo) - Add overflow-x-hidden on html and body to prevent right-side empty space - Add w-full on body for proper full-width stretching Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,6 @@ import { Providers } from "~/lib/providers/providers";
|
||||
import { ImpersonatingBanner } from "~/modules/admin/users/user/impersonating-banner";
|
||||
import { BaseLayout } from "~/modules/common/layout/base";
|
||||
import { Toaster } from "~/modules/common/toast";
|
||||
import { BuyCtaDialog } from "~/modules/marketing/layout/buy-cta-dialog";
|
||||
|
||||
export function generateStaticParams() {
|
||||
return config.locales.map((locale) => ({ locale }));
|
||||
@@ -33,7 +32,6 @@ export default async function RootLayout({
|
||||
<Providers locale={locale}>
|
||||
<ImpersonatingBanner />
|
||||
{children}
|
||||
<BuyCtaDialog />
|
||||
<Toaster />
|
||||
</Providers>
|
||||
</BaseLayout>
|
||||
|
||||
@@ -31,10 +31,10 @@ interface BaseLayoutProps {
|
||||
|
||||
export const BaseLayout = ({ children, locale }: BaseLayoutProps) => {
|
||||
return (
|
||||
<html lang={locale} suppressHydrationWarning className={cn(sans.variable, wordmark.variable, mono.variable)}>
|
||||
<html lang={locale} suppressHydrationWarning className={cn(sans.variable, wordmark.variable, mono.variable, "overflow-x-hidden")}>
|
||||
<body
|
||||
suppressHydrationWarning
|
||||
className="bg-background text-foreground flex min-h-screen flex-col items-center justify-center font-sans antialiased"
|
||||
className="bg-background text-foreground flex min-h-screen w-full flex-col items-center justify-center overflow-x-hidden font-sans antialiased"
|
||||
data-theme={appConfig.theme.color}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user