Skip to content

Commit a20b6cb

Browse files
authored
Merge pull request #14579 from guardian/fix-image-width-for-gallery-inline-images
Fix image width for gallery inline images
2 parents 50ea04f + 73cade0 commit a20b6cb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dotcom-rendering/src/components/Picture.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,17 @@ const decideImageWidths = ({
278278
},
279279
];
280280
}
281+
} else if (format.design === ArticleDesign.Gallery) {
282+
return [
283+
{ breakpoint: breakpoints.mobile, width: 375 },
284+
{ breakpoint: breakpoints.mobileMedium, width: 480 },
285+
{ breakpoint: breakpoints.mobileLandscape, width: 660 },
286+
{ breakpoint: breakpoints.phablet, width: 700 },
287+
{ breakpoint: breakpoints.tablet, width: 700 },
288+
{ breakpoint: breakpoints.desktop, width: 740 },
289+
{ breakpoint: breakpoints.leftCol, width: 940 },
290+
{ breakpoint: breakpoints.wide, width: 1020 },
291+
];
281292
} else {
282293
switch (role) {
283294
case 'showcase':

0 commit comments

Comments
 (0)