Skip to content

Commit 396742d

Browse files
committed
fix: motion div height
1 parent 8f3cb55 commit 396742d

File tree

1 file changed

+1
-1
lines changed
  • src/app/(frontend)/components/home

1 file changed

+1
-1
lines changed

src/app/(frontend)/components/home/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const Hero = ({ content }: HeroProps) => {
3232
return (
3333
<section className="relative min-h-[45vh] md:min-h-screen overflow-hidden">
3434
{/* Background Image */}
35-
<motion.div className="absolute inset-0 z-0 will-change-transform" style={{ y }}>
35+
<motion.div className="absolute inset-0 z-0 will-change-transform md:h-full h-[45vh]" style={{ y }}>
3636
{typeof content.background === "object" && content.background?.url && (
3737
<Image
3838
src={content.background.url}

0 commit comments

Comments
 (0)