Skip to content

Commit

Permalink
fix: csb aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 31, 2024
1 parent bc4b3b1 commit 4202ddc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/mdx/Codesandbox/Codesandbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ export function Codesandbox({
rel="noreferrer"
className="mb-2 block"
>
{screenshot_url && <Img src={screenshot_url} alt={title} width={1763} height={926} />}
{screenshot_url && (
<Img
src={screenshot_url}
alt={title}
width={1763}
height={926}
className="aspect-[16/9] object-cover"
/>
)}
</a>
)}

Expand Down

0 comments on commit 4202ddc

Please sign in to comment.