Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1483b44

Browse files
nelsonreitzGatsbyJS Bot
authored and
GatsbyJS Bot
committed
fix(www): improve PrevAndNext arrows design (gatsbyjs#20124)
1 parent feb17f1 commit 1483b44

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

www/src/components/prev-and-next.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,19 @@ const PrevAndNext = ({ prev = null, next = null, ...props }) => {
4949
<span
5050
sx={{
5151
[mediaQueries.md]: {
52-
marginLeft: t => `-${t.space[4]}`,
52+
ml: `-1.5em`,
5353
},
5454
display: `inline-flex`,
5555
alignItems: `center`,
5656
}}
5757
>
58-
<ArrowBackIcon sx={{ verticalAlign: `sub` }} />
58+
<ArrowBackIcon
59+
sx={{
60+
flexShrink: 0,
61+
mr: `0.5em`,
62+
verticalAlign: `sub`,
63+
}}
64+
/>
5965
{prev.title}
6066
</span>
6167
</Link>
@@ -74,14 +80,20 @@ const PrevAndNext = ({ prev = null, next = null, ...props }) => {
7480
<span
7581
sx={{
7682
[mediaQueries.md]: {
77-
marginRight: t => `-${t.space[4]}`,
83+
mr: `-1.5em`,
7884
},
7985
display: `inline-flex`,
8086
alignItems: `center`,
8187
}}
8288
>
8389
{next.title}
84-
<ArrowForwardIcon sx={{ verticalAlign: `sub` }} />
90+
<ArrowForwardIcon
91+
sx={{
92+
flexShrink: 0,
93+
ml: `0.5em`,
94+
verticalAlign: `sub`,
95+
}}
96+
/>
8597
</span>
8698
</Link>
8799
)}

0 commit comments

Comments
 (0)