File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
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 (
Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ const decideMedia = (
197
197
galleryCount : number = 0 ,
198
198
audioDuration : string = '' ,
199
199
podcastImage ?: PodcastSeriesImage ,
200
+ imageHide ?: boolean ,
200
201
) : MainMedia | undefined => {
201
202
// If the showVideo toggle is enabled in the fronts tool,
202
203
// we should return the active mediaAtom regardless of the design
@@ -211,7 +212,7 @@ const decideMedia = (
211
212
case ArticleDesign . Audio :
212
213
return {
213
214
type : 'Audio' ,
214
- podcastImage,
215
+ podcastImage : ! imageHide ? podcastImage : undefined ,
215
216
duration : audioDuration ,
216
217
} ;
217
218
@@ -293,6 +294,7 @@ export const enhanceCards = (
293
294
faciaCard . card . galleryCount ,
294
295
faciaCard . card . audioDuration ,
295
296
podcastImage ,
297
+ faciaCard . display . imageHide ,
296
298
) ;
297
299
298
300
return {
You can’t perform that action at this time.
0 commit comments