This commit is contained in:
Chuck Dries 2022-12-03 16:00:36 -08:00
parent 10a3536aed
commit 592cc4223b
No known key found for this signature in database
GPG Key ID: A00B7AEAE1DC5BE6

View File

@ -97,12 +97,13 @@ const IndexPage = ({
> >
<GatsbyImage <GatsbyImage
alt="" alt=""
className={screenHeight ? `${screenHeight - 160}px`: 'h-[calc(100vh-160px)]'}
image={img!} image={img!}
loading="eager" loading="eager"
objectFit={browserIsLandscape ? "cover" : "contain"} objectFit={browserIsLandscape ? "cover" : "contain"}
style={{ style={{
height: "calc(100vh-160px)", height: screenHeight
? `${screenHeight - 160}px`
: "calc(100vh-160px)",
}} }}
/> />
</Link> </Link>