Skip to content

Commit a04cda1

Browse files
committed
Improve chain page Open graph metadata + image (#5081)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the Open Graph metadata and improving the layout of the `chainPage` component in the dashboard application. ### Detailed summary - In `layout.tsx`, added an `openGraph` object containing `title` and `description`. - In `opengraph-image.tsx`, added the `objectFit` property with the value `"contain"` for image styling. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 67a363f commit a04cda1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage)/layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export async function generateMetadata({
4646
return {
4747
title,
4848
description,
49+
openGraph: {
50+
title,
51+
description,
52+
},
4953
};
5054
}
5155

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage)/opengraph-image.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export default async function Image({
122122
right: -2,
123123
height: 150,
124124
width: 150,
125+
objectFit: "contain",
125126
}}
126127
/>
127128
)}

0 commit comments

Comments
 (0)