Skip to content

Commit

Permalink
Apply Datawrapper spacing only for some roles
Browse files Browse the repository at this point in the history
  • Loading branch information
emdash-ie committed Oct 1, 2024
1 parent 2e132fe commit 0e55a5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dotcom-rendering/src/components/Figure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type Props = {
const roleCss = (isDatawrapperGraphic: boolean) => {
return {
inline: css`
margin-top: ${space[3]}px;
margin-bottom: ${space[3]}px;
margin-top: ${space[isDatawrapperGraphic ? 8 : 3]}px;
margin-bottom: ${space[isDatawrapperGraphic ? 8 : 3]}px;
`,

supporting: css`
Expand Down Expand Up @@ -72,8 +72,8 @@ const roleCss = (isDatawrapperGraphic: boolean) => {
`,

showcase: css`
margin-top: ${space[3]}px;
margin-bottom: ${space[3]}px;
margin-top: ${space[isDatawrapperGraphic ? 8 : 3]}px;
margin-bottom: ${space[isDatawrapperGraphic ? 8 : 3]}px;
position: relative;
${from.leftCol} {
margin-left: -160px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ const wrapperStyle = ({
? `
border-top: 1px solid #dcdcdc;
padding-top: 8px;
margin-top: 32px;
margin-bottom: 32px;
`
: ''}
`;
Expand Down

0 comments on commit 0e55a5b

Please sign in to comment.