@@ -9,10 +9,7 @@ import type {
9
9
DCRFrontCard ,
10
10
DCRGroupedTrails ,
11
11
} from '../types/front' ;
12
- import type {
13
- ImagePositionType ,
14
- ImageSizeType ,
15
- } from './Card/components/ImageWrapper' ;
12
+ import type { ImagePositionType } from './Card/components/ImageWrapper' ;
16
13
import { LI } from './Card/components/LI' ;
17
14
import type { TrailTextSize } from './Card/components/TrailText' ;
18
15
import { UL } from './Card/components/UL' ;
@@ -36,7 +33,6 @@ type BoostProperties = {
36
33
headlineSizes : ResponsiveFontSize ;
37
34
imagePositionOnDesktop : ImagePositionType ;
38
35
imagePositionOnMobile : ImagePositionType ;
39
- imageSize : ImageSizeType ;
40
36
supportingContentAlignment : Alignment ;
41
37
liveUpdatesAlignment : Alignment ;
42
38
trailTextSize : TrailTextSize ;
@@ -51,23 +47,18 @@ const determineCardProperties = (
51
47
supportingContentLength : number ,
52
48
mediaCard : boolean ,
53
49
imageSuppressed : boolean ,
54
- hasLivePlayable : boolean ,
55
50
) : BoostProperties => {
56
51
switch ( boostLevel ) {
57
52
// The default boost level is equal to no boost. It is the same as the default card layout.
58
53
case 'default' :
59
54
return {
60
55
headlineSizes : {
61
- desktop :
62
- imageSuppressed || hasLivePlayable
63
- ? 'xxlarge'
64
- : 'xlarge' ,
56
+ desktop : imageSuppressed ? 'xxlarge' : 'xlarge' ,
65
57
tablet : 'large' ,
66
58
mobile : 'medium' ,
67
59
} ,
68
60
imagePositionOnDesktop : 'right' ,
69
61
imagePositionOnMobile : mediaCard ? 'top' : 'bottom' ,
70
- imageSize : 'large' ,
71
62
supportingContentAlignment :
72
63
supportingContentLength >= 3 ? 'horizontal' : 'vertical' ,
73
64
liveUpdatesAlignment : 'vertical' ,
@@ -76,16 +67,12 @@ const determineCardProperties = (
76
67
case 'boost' :
77
68
return {
78
69
headlineSizes : {
79
- desktop :
80
- imageSuppressed || hasLivePlayable
81
- ? 'xxxlarge'
82
- : 'xxlarge' ,
70
+ desktop : imageSuppressed ? 'xxxlarge' : 'xxlarge' ,
83
71
tablet : 'xlarge' ,
84
72
mobile : 'large' ,
85
73
} ,
86
74
imagePositionOnDesktop : 'right' ,
87
75
imagePositionOnMobile : mediaCard ? 'top' : 'bottom' ,
88
- imageSize : 'jumbo' ,
89
76
supportingContentAlignment :
90
77
supportingContentLength >= 3 ? 'horizontal' : 'vertical' ,
91
78
liveUpdatesAlignment : 'vertical' ,
@@ -94,16 +81,12 @@ const determineCardProperties = (
94
81
case 'megaboost' :
95
82
return {
96
83
headlineSizes : {
97
- desktop :
98
- imageSuppressed || hasLivePlayable
99
- ? 'xxxlarge'
100
- : 'xxlarge' ,
84
+ desktop : imageSuppressed ? 'xxxlarge' : 'xxlarge' ,
101
85
tablet : 'xlarge' ,
102
86
mobile : 'xlarge' ,
103
87
} ,
104
88
imagePositionOnDesktop : mediaCard ? 'top' : 'bottom' ,
105
89
imagePositionOnMobile : mediaCard ? 'top' : 'bottom' ,
106
- imageSize : 'jumbo' ,
107
90
supportingContentAlignment : 'horizontal' ,
108
91
liveUpdatesAlignment : 'horizontal' ,
109
92
trailTextSize : 'large' ,
@@ -117,7 +100,6 @@ const determineCardProperties = (
117
100
} ,
118
101
imagePositionOnDesktop : mediaCard ? 'top' : 'bottom' ,
119
102
imagePositionOnMobile : mediaCard ? 'top' : 'bottom' ,
120
- imageSize : 'jumbo' ,
121
103
supportingContentAlignment : 'horizontal' ,
122
104
liveUpdatesAlignment : 'horizontal' ,
123
105
trailTextSize : 'large' ,
@@ -155,7 +137,6 @@ export const OneCardLayout = ({
155
137
headlineSizes,
156
138
imagePositionOnDesktop,
157
139
imagePositionOnMobile,
158
- imageSize,
159
140
supportingContentAlignment,
160
141
liveUpdatesAlignment,
161
142
trailTextSize,
@@ -164,7 +145,6 @@ export const OneCardLayout = ({
164
145
card . supportingContent ?. length ?? 0 ,
165
146
isMediaCard ( card . format ) ,
166
147
! card . image ,
167
- card . showLivePlayable ,
168
148
) ;
169
149
170
150
return (
@@ -179,7 +159,7 @@ export const OneCardLayout = ({
179
159
headlineSizes = { headlineSizes }
180
160
imagePositionOnDesktop = { imagePositionOnDesktop }
181
161
imagePositionOnMobile = { imagePositionOnMobile }
182
- imageSize = { imageSize }
162
+ imageSize = { 'jumbo' }
183
163
trailText = { card . trailText }
184
164
supportingContent = { card . supportingContent }
185
165
supportingContentAlignment = { supportingContentAlignment }
0 commit comments