Skip to content

Commit 4eb71d9

Browse files
committed
fix: remove horizontal scrolling & fix white bg on xl screen
1 parent b78f7df commit 4eb71d9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/components/features/BenefitsSection/BenefitsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { BenefitsContent } from "./BenefitsContent";
66
export default function BenefitsSection() {
77
return (
88
<section>
9-
<header className="my-24">
9+
<header className="py-24">
1010
<h2
1111
style={{
1212
["--bg-image-before" as string]: `url(${yellowStar.src})`,

src/components/features/HeroSection/HeroContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ interface ContainerProps {
44
className?: string;
55
}
66
export function HeroContainer({ children, className }: ContainerProps) {
7-
return <div className={cn("bg-background text-foreground w-screen min-h-screen relative overflow-x-hidden pt-22 lg:pt-28 2xl:pt-40", className)} data-testid="hero-container">{children}</div>;
7+
return <div className={cn("bg-background text-foreground w-full min-h-screen relative overflow-x-hidden pt-22 lg:pt-28 2xl:pt-40", className)} data-testid="hero-container">{children}</div>;
88

99
}

src/components/layout.tsx/Layout.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@
22
import React, { PropsWithChildren } from "react";
33

44
export const Layout: React.FC<PropsWithChildren> = ({ children }) => {
5-
return <div className="container lg:container-lg bg-background text-foreground antialiased box-border">{children}</div>;
5+
return (
6+
<div className="bg-background">
7+
<div className="container lg:container-lg bg-background text-foreground antialiased box-border">
8+
{children}
9+
</div>
10+
</div>
11+
)
612
};

0 commit comments

Comments
 (0)