@@ -33,7 +33,7 @@ import type {
3333 DCRSupportingContent ,
3434} from '../../types/front' ;
3535import type { MainMedia } from '../../types/mainMedia' ;
36- import type { OnwardContainerType , OnwardsSource } from '../../types/onwards' ;
36+ import type { OnwardsSource } from '../../types/onwards' ;
3737import { Avatar } from '../Avatar' ;
3838import { CardCommentCount } from '../CardCommentCount.importable' ;
3939import { CardHeadline , type ResponsiveFontSize } from '../CardHeadline' ;
@@ -124,7 +124,7 @@ export type Props = {
124124 supportingContentPosition ?: Position ;
125125 snapData ?: DCRSnapType ;
126126 containerPalette ?: DCRContainerPalette ;
127- containerType ?: DCRContainerType | OnwardContainerType ;
127+ containerType ?: DCRContainerType ;
128128 showAge ?: boolean ;
129129 discussionApiUrl : string ;
130130 discussionId ?: string ;
@@ -588,8 +588,6 @@ export const Card = ({
588588 containerType === 'flexible/special' ||
589589 containerType === 'flexible/general' ;
590590
591- const isOnwardContainer = containerType === 'more-galleries' ;
592-
593591 const isSmallCard =
594592 containerType === 'scrollable/small' ||
595593 containerType === 'scrollable/medium' ;
@@ -624,7 +622,9 @@ export const Card = ({
624622 return 'tablet' ;
625623 } ;
626624
627- const shouldShowTrailText = isOnwardContainer
625+ const isMoreGalleriesOnwardContent =
626+ isOnwardContent && onwardsSource === 'more-galleries' ;
627+ const shouldShowTrailText = isMoreGalleriesOnwardContent
628628 ? media ?. type !== 'podcast' && isOnwardSplash
629629 : media ?. type !== 'podcast' ;
630630
@@ -1066,7 +1066,10 @@ export const Card = ({
10661066 imageSize = { mediaSize }
10671067 alt = { headlineText }
10681068 loading = { imageLoading }
1069- roundedCorners = { isOnwardContent }
1069+ roundedCorners = {
1070+ isOnwardContent &&
1071+ ! isMoreGalleriesOnwardContent
1072+ }
10701073 aspectRatio = { aspectRatio }
10711074 isInAllBoostsTest = {
10721075 isInAllBoostsTest
@@ -1083,7 +1086,10 @@ export const Card = ({
10831086 imageSize = { mediaSize }
10841087 alt = { media . imageAltText }
10851088 loading = { imageLoading }
1086- roundedCorners = { isOnwardContent }
1089+ roundedCorners = {
1090+ isOnwardContent &&
1091+ ! isMoreGalleriesOnwardContent
1092+ }
10871093 aspectRatio = { aspectRatio }
10881094 isInAllBoostsTest = { isInAllBoostsTest }
10891095 />
@@ -1121,7 +1127,10 @@ export const Card = ({
11211127 imageSize = "small"
11221128 alt = { media . imageAltText }
11231129 loading = { imageLoading }
1124- roundedCorners = { isOnwardContent }
1130+ roundedCorners = {
1131+ isOnwardContent &&
1132+ ! isMoreGalleriesOnwardContent
1133+ }
11251134 aspectRatio = "1:1"
11261135 />
11271136 </ div >
@@ -1152,7 +1161,7 @@ export const Card = ({
11521161 padContent = { determinePadContent (
11531162 isMediaCardOrNewsletter ,
11541163 isBetaContainer ,
1155- isOnwardContent ,
1164+ isOnwardContent && ! isMoreGalleriesOnwardContent ,
11561165 ) }
11571166 >
11581167 { /* This div is needed to keep the headline and trail text justified at the start */ }
0 commit comments