Skip to content

Commit 0e3c2ba

Browse files
Add podcastCover to decideImageWidths - switch (role) (#14774)
* Add podcastCover to the picture.tsx default case. * remove default in case so that TS will pick up if a role case is missing.
1 parent 5a31639 commit 0e3c2ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dotcom-rendering/src/components/Picture.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,12 @@ const decideImageWidths = ({
358358
];
359359
case 'halfWidth':
360360
return [{ breakpoint: breakpoints.mobile, width: 445 }];
361+
case 'podcastCover':
362+
return [
363+
{ breakpoint: breakpoints.mobile, width: 140 },
364+
{ breakpoint: breakpoints.wide, width: 219 },
365+
];
361366
case 'inline':
362-
default:
363367
return [
364368
{ breakpoint: breakpoints.mobile, width: 445 },
365369
{

0 commit comments

Comments
 (0)