Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Jan 7, 2025
1 parent 7003930 commit 4f5d769
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dotcom-rendering/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.watcherExclude": {
"**/target": true
}
}
2 changes: 2 additions & 0 deletions dotcom-rendering/src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ export const Card = ({
const getGapSize = (): GapSize => {
if (isOnwardContent) return 'none';
if (isMediaCard && !isFlexibleContainer) return 'tiny';
if (isMediaCard && isFlexibleContainer) return 'none';

if (!!isFlexSplash || (isFlexibleContainer && imageSize === 'jumbo')) {
return 'small';
}
Expand Down
4 changes: 3 additions & 1 deletion dotcom-rendering/src/components/FlexibleGeneral.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ export const StandardCardLayout = ({
)}
supportingContentAlignment="vertical"
supportingContentPosition="outer"
imageSize={'medium'}
imageSize={
isMediaCard(card.format) ? 'small' : 'medium'
}
aspectRatio={aspectRatio}
kickerText={card.kickerText}
showLivePlayable={false}
Expand Down

0 comments on commit 4f5d769

Please sign in to comment.