Skip to content

Commit

Permalink
changing the vh with dvh (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
omarghandour authored Nov 25, 2024
2 parents a06b485 + 2987c86 commit b123f02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Hero = forwardRef<HTMLDivElement>((_, ref) => {
return (
<section
ref={localRef}
className={`overflow-x-hidden flex justify-center h-screen w-full snap-start`}
className={`overflow-x-hidden flex justify-center h-[100dvh] w-full snap-start`}
>
<div
className={`flex w-full h-full flex-col md:flex-row justify-center items-center transition-all duration-700 ${
Expand Down
2 changes: 1 addition & 1 deletion app/components/ScrollBySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const ScrollBySection: React.FC = () => {

return (
<div
className={`h-screen w-full ${isDesktop ? "overflow-y-hidden" : ""}`} // Overflow hidden only for desktop
className={`h-[100dvh] w-full ${isDesktop ? "overflow-y-hidden" : ""}`} // Overflow hidden only for desktop
>
<Hero
ref={(el) => {
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function RootLayout({
rel="stylesheet"
/>
</head>
<body className={`font-Poppins antialiased`}>{children}</body>
<body className={`h-[100dvh] font-Poppins antialiased`}>{children}</body>
</html>
);
}

1 comment on commit b123f02

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for blackwaves ready!

✅ Preview
https://blackwaves-jqlu8whhz-omarkhaled9913gmailcoms-projects.vercel.app

Built with commit b123f02.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.