@@ -21,6 +21,7 @@ import type { ResponsiveFontSize } from './CardHeadline';
2121import type { Loading } from './CardPicture' ;
2222import { FeatureCard } from './FeatureCard' ;
2323import { FrontCard } from './FrontCard' ;
24+ import type { SubtitleSize } from './LoopVideoPlayer' ;
2425import type { Alignment } from './SupportingContent' ;
2526
2627type Props = {
@@ -153,6 +154,7 @@ type BoostedSplashProperties = {
153154 supportingContentAlignment : Alignment ;
154155 liveUpdatesAlignment : Alignment ;
155156 trailTextSize : TrailTextSize ;
157+ subtitleSize : SubtitleSize ;
156158 avatarUrl ?: string ;
157159} ;
158160
@@ -183,6 +185,7 @@ const decideSplashCardProperties = (
183185 supportingContentLength >= 4 ? 'horizontal' : 'vertical' ,
184186 liveUpdatesAlignment : 'vertical' ,
185187 trailTextSize : 'regular' ,
188+ subtitleSize : 'medium' ,
186189 } ;
187190 case 'boost' :
188191 return {
@@ -198,6 +201,7 @@ const decideSplashCardProperties = (
198201 supportingContentLength >= 4 ? 'horizontal' : 'vertical' ,
199202 liveUpdatesAlignment : 'vertical' ,
200203 trailTextSize : 'regular' ,
204+ subtitleSize : 'medium' ,
201205 } ;
202206 case 'megaboost' :
203207 return {
@@ -214,6 +218,7 @@ const decideSplashCardProperties = (
214218 supportingContentAlignment : 'horizontal' ,
215219 liveUpdatesAlignment : 'horizontal' ,
216220 trailTextSize : 'large' ,
221+ subtitleSize : 'large' ,
217222 } ;
218223 case 'gigaboost' :
219224 return {
@@ -230,6 +235,7 @@ const decideSplashCardProperties = (
230235 supportingContentAlignment : 'horizontal' ,
231236 liveUpdatesAlignment : 'horizontal' ,
232237 trailTextSize : 'large' ,
238+ subtitleSize : 'large' ,
233239 } ;
234240 }
235241} ;
@@ -290,6 +296,7 @@ const SplashCardLayout = ({
290296 supportingContentAlignment,
291297 liveUpdatesAlignment,
292298 trailTextSize,
299+ subtitleSize,
293300 } = decideSplashCardProperties (
294301 card . boostLevel ?? 'default' ,
295302 card . supportingContent ?. length ?? 0 ,
@@ -339,6 +346,7 @@ const SplashCardLayout = ({
339346 trailTextSize = { trailTextSize }
340347 canPlayInline = { true }
341348 showKickerImage = { card . format . design === ArticleDesign . Audio }
349+ subtitleSize = { subtitleSize }
342350 headlinePosition = { card . showLivePlayable ? 'outer' : 'inner' }
343351 showLabsRedesign = { showLabsRedesign }
344352 />
@@ -352,6 +360,7 @@ type BoostedCardProperties = {
352360 mediaSize : MediaSizeType ;
353361 liveUpdatesPosition : Position ;
354362 supportingContentAlignment : Alignment ;
363+ subtitleSize : SubtitleSize ;
355364} ;
356365
357366/**
@@ -375,6 +384,7 @@ const decideCardProperties = (
375384 liveUpdatesPosition : 'outer' ,
376385 supportingContentAlignment :
377386 supportingContentLength >= 2 ? 'horizontal' : 'vertical' ,
387+ subtitleSize : 'medium' ,
378388 } ;
379389 case 'boost' :
380390 default :
@@ -388,6 +398,7 @@ const decideCardProperties = (
388398 liveUpdatesPosition : 'inner' ,
389399 supportingContentAlignment :
390400 supportingContentLength >= 2 ? 'horizontal' : 'vertical' ,
401+ subtitleSize : 'small' ,
391402 } ;
392403 }
393404} ;
@@ -428,6 +439,7 @@ const FullWidthCardLayout = ({
428439 mediaSize,
429440 supportingContentAlignment,
430441 liveUpdatesPosition,
442+ subtitleSize,
431443 } = decideCardProperties (
432444 card . supportingContent ?. length ?? 0 ,
433445 card . boostLevel ,
@@ -492,6 +504,7 @@ const FullWidthCardLayout = ({
492504 canPlayInline = { true }
493505 showKickerImage = { card . format . design === ArticleDesign . Audio }
494506 showLabsRedesign = { showLabsRedesign }
507+ subtitleSize = { subtitleSize }
495508 />
496509 </ LI >
497510 </ UL >
0 commit comments