Skip to content

Commit 4946dcd

Browse files
committed
Refactor MediumImpactHero component for improved media layout and styling
Signed-off-by: Christopher Wray <chris@sol.company>
1 parent 1d7f449 commit 4946dcd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/src/heros/MediumImpact/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ export const MediumImpactHero: React.FC<Page['hero']> = ({ links, media, richTex
2424
</ul>
2525
)}
2626
</div>
27-
<div className="order-first lg:order-last max-h-[60vh] lg:max-h-full h-full">
27+
<div className="order-first lg:order-last max-h-[60vh] lg:max-h-full h-full overflow-hidden rounded-2xl">
2828
{media && typeof media === 'object' && (
2929
<>
3030
<Media
31-
className="max-h-full overflow-hidden"
32-
imgClassName="object-cover"
31+
className="h-full w-full"
32+
imgClassName="object-cover h-full w-full"
33+
pictureClassName="w-full h-full"
3334
priority
3435
resource={media}
3536
/>

0 commit comments

Comments
 (0)