fix: og image fix for collections
This commit is contained in:
@@ -102,7 +102,6 @@ export async function GET(
|
||||
backgroundColor: hasImage ? "#1a1410" : "#faf5f0",
|
||||
fontFamily: "Noto Sans, sans-serif",
|
||||
position: "relative",
|
||||
padding: 80,
|
||||
}}
|
||||
>
|
||||
{/* Background image + dimming overlay */}
|
||||
@@ -138,6 +137,19 @@ export async function GET(
|
||||
</>
|
||||
) : null}
|
||||
|
||||
{/* Content layer — holds the padding so the bg image stays
|
||||
full-bleed (absolute children measure from the padding box, so
|
||||
padding on the root would inset the image and show a strip). */}
|
||||
<div
|
||||
style={{
|
||||
position: "relative",
|
||||
zIndex: 1,
|
||||
flex: 1,
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
padding: 80,
|
||||
}}
|
||||
>
|
||||
{/* Caption — the centrepiece */}
|
||||
<div
|
||||
style={{
|
||||
@@ -254,6 +266,7 @@ export async function GET(
|
||||
prabhupadasays.org
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user