Skip to content

Commit 2b43374

Browse files
committed
feat: Add responsive padding and center cover image
1 parent c4237d0 commit 2b43374

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/notion-to-jsx/src/components/Cover/styles.css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export const cover = style({
88
objectFit: 'cover',
99
objectPosition: 'center 50%',
1010
borderRadius: '1.5rem',
11+
margin: '0 auto',
1112
});

packages/notion-to-jsx/src/components/Renderer/styles.css.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@ export const container = style({
55
maxWidth: '720px',
66
margin: '0 auto',
77
padding: vars.spacing.xl,
8+
'@media': {
9+
'(max-width: 720px)': {
10+
padding: vars.spacing.md,
11+
},
12+
},
813
});

0 commit comments

Comments
 (0)