Skip to content

Commit 05f5883

Browse files
committed
Same for Scrollable Small
1 parent 3d9f84e commit 05f5883

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const HorizontalDivider = () => (
229229

230230
const podcastImageStyles = (imageSize: MediaSizeType) => {
231231
switch (imageSize) {
232-
case 'small':
232+
case 'scrollable-small':
233233
return css`
234234
width: 69px;
235235
height: 69px;

dotcom-rendering/src/components/Card/components/AvatarContainer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const sizingStyles = (
8181

8282
switch (imageSize) {
8383
case 'small':
84+
case 'scrollable-small':
8485
return isFlexibleContainer
8586
? css`
8687
width: 90px;

dotcom-rendering/src/components/Card/components/MediaWrapper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export type MediaSizeType =
2525
| 'xlarge'
2626
| 'jumbo'
2727
| 'carousel'
28+
| 'scrollable-small'
2829
| 'scrollable-medium'
2930
| 'podcast'
3031
| 'highlights-card'

dotcom-rendering/src/components/CardPicture.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ const decideImageWidths = (
5050
{ breakpoint: breakpoints.mobile, width: 220, aspectRatio },
5151
];
5252

53+
case 'scrollable-small':
54+
return [
55+
{ breakpoint: breakpoints.mobile, width: 86, aspectRatio },
56+
{ breakpoint: breakpoints.tablet, width: 123, aspectRatio },
57+
];
5358
case 'scrollable-medium':
5459
return [
5560
{ breakpoint: breakpoints.mobile, width: 200, aspectRatio },

dotcom-rendering/src/components/ScrollableSmall.importable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const ScrollableSmall = ({
9292
}}
9393
mediaPositionOnDesktop="left"
9494
mediaPositionOnMobile="left"
95-
mediaSize="small"
95+
mediaSize="scrollable-small"
9696
trailText={undefined} // unsupported
9797
supportingContent={undefined} // unsupported
9898
aspectRatio={aspectRatio}

0 commit comments

Comments
 (0)