Skip to content

Commit

Permalink
Correctly align outer sublinks and livelinks (#13087)
Browse files Browse the repository at this point in the history
* Correctly align sublinks and livelinks

* Apply styles only to beta containers
  • Loading branch information
abeddow91 authored Jan 9, 2025
1 parent 6b2a749 commit b3567e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dotcom-rendering/src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,15 @@ export const Card = ({
</CardLayout>

<div
css={
/** If beta containers have liveblog links or sublink links in the outer position, we set flex-basis so that they sit below the image */
isBetaContainer &&
(liveUpdatesPosition === 'outer' ||
sublinkPosition === 'outer') &&
css`
flex-basis: 100%;
`
}
style={{
padding:
isMediaCard || isOnwardContent ? `0 ${space[2]}px` : 0,
Expand Down

0 comments on commit b3567e9

Please sign in to comment.