@@ -119,6 +119,7 @@ type OneCardLayoutProps = {
119119 isLastRow : boolean ;
120120 isFirstRow : boolean ;
121121 containerLevel : DCRContainerLevel ;
122+ isSplashCard ?: boolean ;
122123 isInLoopingVideoTestVariant ?: boolean ;
123124 isInLoopingVideoTestControl ?: boolean ;
124125} ;
@@ -133,6 +134,7 @@ export const OneCardLayout = ({
133134 isLastRow,
134135 isFirstRow,
135136 containerLevel,
137+ isSplashCard,
136138 isInLoopingVideoTestVariant = false ,
137139 isInLoopingVideoTestControl = false ,
138140} : OneCardLayoutProps ) => {
@@ -183,6 +185,7 @@ export const OneCardLayout = ({
183185 trailTextSize = { trailTextSize }
184186 canPlayInline = { true }
185187 showKickerImage = { card . format . design === ArticleDesign . Audio }
188+ headlinePosition = { isSplashCard ? 'outer' : 'inner' }
186189 isInLoopingVideoTestVariant = { isInLoopingVideoTestVariant }
187190 isInLoopingVideoTestControl = { isInLoopingVideoTestControl }
188191 />
@@ -299,32 +302,39 @@ export const FlexibleSpecial = ({
299302
300303 return (
301304 < >
302- < OneCardLayout
303- cards = { snaps }
304- containerPalette = { containerPalette }
305- showAge = { showAge }
306- absoluteServerTimes = { absoluteServerTimes }
307- imageLoading = { imageLoading }
308- aspectRatio = { aspectRatio }
309- isFirstRow = { true }
310- isLastRow = { splash . length === 0 && cards . length === 0 }
311- containerLevel = { containerLevel }
312- isInLoopingVideoTestVariant = { isInLoopingVideoTestVariant }
313- isInLoopingVideoTestControl = { isInLoopingVideoTestControl }
314- />
315- < OneCardLayout
316- cards = { splash }
317- containerPalette = { containerPalette }
318- showAge = { showAge }
319- absoluteServerTimes = { absoluteServerTimes }
320- imageLoading = { imageLoading }
321- aspectRatio = { aspectRatio }
322- isLastRow = { cards . length === 0 }
323- isFirstRow = { ! isNonEmptyArray ( snaps ) }
324- containerLevel = { containerLevel }
325- isInLoopingVideoTestVariant = { isInLoopingVideoTestVariant }
326- isInLoopingVideoTestControl = { isInLoopingVideoTestControl }
327- />
305+ { isNonEmptyArray ( snaps ) && (
306+ < OneCardLayout
307+ cards = { snaps }
308+ containerPalette = { containerPalette }
309+ showAge = { showAge }
310+ absoluteServerTimes = { absoluteServerTimes }
311+ imageLoading = { imageLoading }
312+ aspectRatio = { aspectRatio }
313+ isFirstRow = { true }
314+ isLastRow = { splash . length === 0 && cards . length === 0 }
315+ containerLevel = { containerLevel }
316+ isSplashCard = { false }
317+ isInLoopingVideoTestVariant = { isInLoopingVideoTestVariant }
318+ isInLoopingVideoTestControl = { isInLoopingVideoTestControl }
319+ />
320+ ) }
321+ { isNonEmptyArray ( splash ) && (
322+ < OneCardLayout
323+ cards = { splash }
324+ containerPalette = { containerPalette }
325+ showAge = { showAge }
326+ absoluteServerTimes = { absoluteServerTimes }
327+ imageLoading = { imageLoading }
328+ aspectRatio = { aspectRatio }
329+ isLastRow = { cards . length === 0 }
330+ isFirstRow = { ! isNonEmptyArray ( snaps ) }
331+ containerLevel = { containerLevel }
332+ isSplashCard = { true }
333+ isInLoopingVideoTestVariant = { isInLoopingVideoTestVariant }
334+ isInLoopingVideoTestControl = { isInLoopingVideoTestControl }
335+ />
336+ ) }
337+
328338 < TwoOrFourCardLayout
329339 cards = { cards }
330340 containerPalette = { containerPalette }
0 commit comments