Skip to content

Commit 3464583

Browse files
committed
set isOnwardContent to true for ScrollableSmallOnwards
1 parent de1226c commit 3464583

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
@@ -1336,7 +1336,10 @@ export const Card = ({
13361336
`
13371337
}
13381338
style={{
1339-
padding: isOnwardContent ? `0 ${space[2]}px` : 0,
1339+
padding:
1340+
isOnwardContent && !isInGalleryContext
1341+
? `0 ${space[2]}px`
1342+
: 0,
13401343
}}
13411344
>
13421345
{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)