Skip to content

Commit 727559d

Browse files
committed
set isOnwardContent to true for ScrollableSmallOnwards
1 parent f603dfa commit 727559d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,10 @@ export const Card = ({
13321332
`
13331333
}
13341334
style={{
1335-
padding: isOnwardContent ? `0 ${space[2]}px` : 0,
1335+
padding:
1336+
isOnwardContent && !isInGalleryContext
1337+
? `0 ${space[2]}px`
1338+
: 0,
13361339
}}
13371340
>
13381341
{showLivePlayable && liveUpdatesPosition === 'outer' && (

dotcom-rendering/src/components/ScrollableSmallOnwards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ const getDefaultCardProps = (
230230
supportingContent: undefined,
231231
canPlayInline: false,
232232
onwardsSource,
233-
isOnwardContent: false,
233+
isOnwardContent: true,
234234
showLivePlayable: false,
235235
};
236236
return defaultProps;

0 commit comments

Comments
 (0)