Skip to content

Commit 6754a67

Browse files
MacbookMacbook
authored andcommitted
fix(site): apply absolute positioning and full dimensions to HexagonGrid in OG images
1 parent 5453a6f commit 6754a67

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • apps/site/app/[locale]/next-data/og/[category]/[title]

apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,14 @@ export const GET = async (_: Request, props: StaticParams) => {
3535

3636
return new ImageResponse(
3737
<div tw="relative flex items-center justify-center bg-black w-[1200px] h-[600px]">
38-
<HexagonGrid style={{ background: gridBackground }} />
38+
<HexagonGrid
39+
style={{
40+
background: gridBackground,
41+
position: 'absolute',
42+
width: '100%',
43+
height: '100%',
44+
}}
45+
/>
3946

4047
<div tw="absolute mx-auto flex max-w-xl flex-col text-center text-3xl font-semibold text-white">
4148
<JsWhiteIcon width={71} height={80} tw="mx-auto" />

0 commit comments

Comments
 (0)