From 25bdffaa11f6caa4432065711ddb5385bf559e2b Mon Sep 17 00:00:00 2001 From: ectasy663 Date: Tue, 22 Sep 2026 19:27:04 +0530 Subject: [PATCH] Fix Share Card alignment by forcing Header, Grid, and Footer to identical widths --- src/app/api/og/dashboard/route.tsx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/app/api/og/dashboard/route.tsx b/src/app/api/og/dashboard/route.tsx index 6b8c83b..a428357 100644 --- a/src/app/api/og/dashboard/route.tsx +++ b/src/app/api/og/dashboard/route.tsx @@ -33,38 +33,39 @@ export async function GET(req: NextRequest) { display: 'flex', flexDirection: 'column', justifyContent: 'space-between', + alignItems: 'center', background: 'linear-gradient(135deg, #09090b 0%, #171717 100%)', color: '#ffffff', fontFamily: 'sans-serif', - padding: '80px', + padding: '80px 0', border: '12px solid #27272a', }} > {/* Header */} -
- -
+
+ +
Performance Overview
{/* Main Content */} -
+
{/* 2x2 Grid */} -
-
+
+
{score} Today's Score
-
+
{accuracy} Accuracy
-
+
{qs} Qs Attempted
-
+
{rank} City Rank
@@ -72,13 +73,13 @@ export async function GET(req: NextRequest) {
{/* Footer */} -
+
{name}
{`${plan} Plan`}
{`${target} Aspirant`}
-
+
contact@pragativeer.com