File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
dotcom-rendering/src/components/Card Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,10 @@ const HorizontalDivider = () => (
227227 />
228228) ;
229229
230- const podcastImageStyles = ( imageSize : MediaSizeType ) => {
230+ const podcastImageStyles = (
231+ imageSize : MediaSizeType ,
232+ imagePositionOnDesktop : MediaPositionType ,
233+ ) => {
231234 switch ( imageSize ) {
232235 case 'small' :
233236 return css `
@@ -240,6 +243,8 @@ const podcastImageStyles = (imageSize: MediaSizeType) => {
240243 ` ;
241244
242245 case 'medium' :
246+ if ( imagePositionOnDesktop === 'left' ) return ;
247+
243248 return css `
244249 width : 98px ;
245250 height : 98px ;
@@ -248,6 +253,7 @@ const podcastImageStyles = (imageSize: MediaSizeType) => {
248253 height : 120px ;
249254 }
250255 ` ;
256+
251257 default :
252258 return css `
253259 width : 120px ;
@@ -1119,7 +1125,12 @@ export const Card = ({
11191125 { media . type === 'podcast' && (
11201126 < >
11211127 { media . podcastImage ?. src && ! showKickerImage ? (
1122- < div css = { podcastImageStyles ( mediaSize ) } >
1128+ < div
1129+ css = { podcastImageStyles (
1130+ mediaSize ,
1131+ mediaPositionOnDesktop ,
1132+ ) }
1133+ >
11231134 < CardPicture
11241135 mainImage = { media . podcastImage . src }
11251136 imageSize = "small"
Original file line number Diff line number Diff line change @@ -213,6 +213,16 @@ export const MediaWrapper = ({
213213 mediaSize,
214214 isBetaContainer,
215215 } ) ,
216+ mediaType === 'podcast' &&
217+ mediaSize === 'medium' &&
218+ css `
219+ ${ from . tablet } {
220+ flex-basis : 120px ;
221+ }
222+ ${ from . desktop } {
223+ flex-basis : 168px ;
224+ }
225+ ` ,
216226 mediaType === 'avatar' &&
217227 css `
218228 display : flex;
You can’t perform that action at this time.
0 commit comments