File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1064,8 +1064,12 @@ export const Card = ({
1064
1064
imageType = { media ?. type }
1065
1065
imageSize = { imageSize }
1066
1066
isBetaContainer = { isBetaContainer }
1067
- imagePositionOnDesktop = { imagePositionOnDesktop }
1068
- imagePositionOnMobile = { imagePositionOnMobile }
1067
+ imagePositionOnDesktop = {
1068
+ image ? imagePositionOnDesktop : 'none'
1069
+ }
1070
+ imagePositionOnMobile = {
1071
+ image ? imagePositionOnMobile : 'none'
1072
+ }
1069
1073
padContent = { determinePadContent (
1070
1074
isMediaCardOrNewsletter ,
1071
1075
isBetaContainer ,
Original file line number Diff line number Diff line change @@ -436,7 +436,6 @@ export const StandardCardLayout = ({
436
436
containerPalette,
437
437
showAge,
438
438
absoluteServerTimes,
439
- showImage = true ,
440
439
imageLoading,
441
440
isFirstRow,
442
441
isFirstStandardRow,
@@ -451,7 +450,6 @@ export const StandardCardLayout = ({
451
450
containerPalette ?: DCRContainerPalette ;
452
451
showAge ?: boolean ;
453
452
absoluteServerTimes : boolean ;
454
- showImage ?: boolean ;
455
453
aspectRatio : AspectRatio ;
456
454
isLastRow : boolean ;
457
455
containerLevel : DCRContainerLevel ;
@@ -485,7 +483,7 @@ export const StandardCardLayout = ({
485
483
containerType = "flexible/general"
486
484
showAge = { showAge }
487
485
absoluteServerTimes = { absoluteServerTimes }
488
- image = { showImage ? card . image : undefined }
486
+ image = { card . image }
489
487
imageLoading = { imageLoading }
490
488
imagePositionOnDesktop = "left"
491
489
supportingContent = { card . supportingContent ?. slice (
You can’t perform that action at this time.
0 commit comments