File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed
dotcom-rendering/src/components/Card Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -638,13 +638,6 @@ export const Card = ({
638
638
} ;
639
639
}
640
640
641
- if ( isFlexSplash ) {
642
- return {
643
- row : 'small' ,
644
- column : 'none' ,
645
- } ;
646
- }
647
-
648
641
if ( ! isBetaContainer ) {
649
642
/**
650
643
* Media cards have 4px padding around the content so we have a
@@ -1092,11 +1085,6 @@ export const Card = ({
1092
1085
isBetaContainer ,
1093
1086
isOnwardContent ,
1094
1087
) }
1095
- padRight = {
1096
- ! ! isFlexSplash &&
1097
- image &&
1098
- imagePositionOnDesktop === 'right'
1099
- }
1100
1088
>
1101
1089
{ /* This div is needed to keep the headline and trail text justified at the start */ }
1102
1090
< div
Original file line number Diff line number Diff line change @@ -99,12 +99,6 @@ const paddingBetaContainerStyles = (
99
99
}
100
100
` ;
101
101
102
- const padRightStyles = css `
103
- ${ from . tablet } {
104
- padding-right : ${ space [ 5 ] } px;
105
- }
106
- ` ;
107
-
108
102
const getImageDirection = (
109
103
imagePosition : ImagePositionType ,
110
104
) : ImageDirection => {
@@ -127,7 +121,6 @@ type Props = {
127
121
imagePositionOnDesktop : ImagePositionType ;
128
122
imagePositionOnMobile : ImagePositionType ;
129
123
padContent ?: 'small' | 'large' ;
130
- padRight ?: boolean ;
131
124
} ;
132
125
133
126
export const ContentWrapper = ( {
@@ -138,7 +131,6 @@ export const ContentWrapper = ({
138
131
imagePositionOnDesktop,
139
132
imagePositionOnMobile,
140
133
padContent,
141
- padRight = false ,
142
134
} : Props ) => {
143
135
const imageDirectionDesktop = getImageDirection ( imagePositionOnDesktop ) ;
144
136
const paddingSpace = padContent === 'small' ? 1 : 2 ;
@@ -161,7 +153,6 @@ export const ContentWrapper = ({
161
153
imagePositionOnDesktop ,
162
154
paddingSpace ,
163
155
) ,
164
- padRight && padRightStyles ,
165
156
] }
166
157
>
167
158
{ children }
You can’t perform that action at this time.
0 commit comments