Skip to content

Commit 9110188

Browse files
committed
fix: handle some mobile browsers x-axis overflow
1 parent ef18cd5 commit 9110188

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/[lang]/(home)/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function Home({t, statsInfo}: Props): ReactElement {
2525
initAmplitude();
2626

2727
return (
28-
<div className={clsx('flex-1 w-full', 'flex flex-col')}>
28+
<div className={clsx('flex-1 w-full max-w-full', 'flex flex-col', 'overflow-x-hidden')}>
2929
<Hero t={t} statsInfo={statsInfo} />
3030
<SectionHowItWorks t={t} />
3131
<SectionFooter t={t} />

app/[lang]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default async function LangLayout(props: Props): Promise<ReactElement> {
3737
className={clsx(
3838
'h-[calc(100vh-56px)]',
3939
'flex w-full min-w-0',
40-
'overflow-y-auto',
40+
'overflow-y-auto overflow-x-hidden',
4141
)}
4242
>
4343
{children}

app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const metadata: Metadata = {
6969

7070
export default function RootLayout({children}: {children: ReactNode}) {
7171
return (
72-
<html lang="en" className="dark h-full">
72+
<html lang="en" className="dark h-full overflow-x-hidden">
7373
<head>
7474
<meta content="width=device-width, initial-scale=1" name="viewport" />
7575
<link rel="manifest" href="/manifest.json" />
@@ -80,7 +80,7 @@ export default function RootLayout({children}: {children: ReactNode}) {
8080
crossOrigin="anonymous"
8181
></script>
8282
</head>
83-
<body className="h-full">{children}</body>
83+
<body className="h-full overflow-x-hidden">{children}</body>
8484
</html>
8585
);
8686
}

0 commit comments

Comments
 (0)