@@ -21,7 +21,6 @@ import type { ResponsiveFontSize } from './CardHeadline';
2121import type { Loading } from './CardPicture' ;
2222import { FeatureCard } from './FeatureCard' ;
2323import { FrontCard } from './FrontCard' ;
24- import type { SubtitleSize } from './LoopVideoPlayer' ;
2524import type { Alignment } from './SupportingContent' ;
2625
2726type Props = {
@@ -156,7 +155,6 @@ type BoostedSplashProperties = {
156155 supportingContentAlignment : Alignment ;
157156 liveUpdatesAlignment : Alignment ;
158157 trailTextSize : TrailTextSize ;
159- subtitleSize : SubtitleSize ;
160158 avatarUrl ?: string ;
161159} ;
162160
@@ -187,7 +185,6 @@ const decideSplashCardProperties = (
187185 supportingContentLength >= 4 ? 'horizontal' : 'vertical' ,
188186 liveUpdatesAlignment : 'vertical' ,
189187 trailTextSize : 'regular' ,
190- subtitleSize : 'medium' ,
191188 } ;
192189 case 'boost' :
193190 return {
@@ -203,7 +200,6 @@ const decideSplashCardProperties = (
203200 supportingContentLength >= 4 ? 'horizontal' : 'vertical' ,
204201 liveUpdatesAlignment : 'vertical' ,
205202 trailTextSize : 'regular' ,
206- subtitleSize : 'medium' ,
207203 } ;
208204 case 'megaboost' :
209205 return {
@@ -220,7 +216,6 @@ const decideSplashCardProperties = (
220216 supportingContentAlignment : 'horizontal' ,
221217 liveUpdatesAlignment : 'horizontal' ,
222218 trailTextSize : 'large' ,
223- subtitleSize : 'large' ,
224219 } ;
225220 case 'gigaboost' :
226221 return {
@@ -237,7 +232,6 @@ const decideSplashCardProperties = (
237232 supportingContentAlignment : 'horizontal' ,
238233 liveUpdatesAlignment : 'horizontal' ,
239234 trailTextSize : 'large' ,
240- subtitleSize : 'large' ,
241235 } ;
242236 }
243237} ;
@@ -299,7 +293,6 @@ const SplashCardLayout = ({
299293 supportingContentAlignment,
300294 liveUpdatesAlignment,
301295 trailTextSize,
302- subtitleSize,
303296 } = decideSplashCardProperties (
304297 card . boostLevel ?? 'default' ,
305298 card . supportingContent ?. length ?? 0 ,
@@ -349,7 +342,6 @@ const SplashCardLayout = ({
349342 trailTextSize = { trailTextSize }
350343 canPlayInline = { true }
351344 showKickerImage = { card . format . design === ArticleDesign . Audio }
352- subtitleSize = { subtitleSize }
353345 headlinePosition = { card . showLivePlayable ? 'outer' : 'inner' }
354346 showLabsRedesign = { showLabsRedesign }
355347 />
@@ -363,7 +355,6 @@ type BoostedCardProperties = {
363355 mediaSize : MediaSizeType ;
364356 liveUpdatesPosition : Position ;
365357 supportingContentAlignment : Alignment ;
366- subtitleSize : SubtitleSize ;
367358} ;
368359
369360/**
@@ -387,7 +378,6 @@ const decideCardProperties = (
387378 liveUpdatesPosition : 'outer' ,
388379 supportingContentAlignment :
389380 supportingContentLength >= 2 ? 'horizontal' : 'vertical' ,
390- subtitleSize : 'medium' ,
391381 } ;
392382 case 'boost' :
393383 default :
@@ -401,7 +391,6 @@ const decideCardProperties = (
401391 liveUpdatesPosition : 'inner' ,
402392 supportingContentAlignment :
403393 supportingContentLength >= 2 ? 'horizontal' : 'vertical' ,
404- subtitleSize : 'small' ,
405394 } ;
406395 }
407396} ;
@@ -442,7 +431,6 @@ const FullWidthCardLayout = ({
442431 mediaSize,
443432 supportingContentAlignment,
444433 liveUpdatesPosition,
445- subtitleSize,
446434 } = decideCardProperties (
447435 card . supportingContent ?. length ?? 0 ,
448436 card . boostLevel ,
@@ -508,7 +496,6 @@ const FullWidthCardLayout = ({
508496 canPlayInline = { true }
509497 showKickerImage = { card . format . design === ArticleDesign . Audio }
510498 showLabsRedesign = { showLabsRedesign }
511- subtitleSize = { subtitleSize }
512499 />
513500 </ LI >
514501 </ UL >
0 commit comments