Skip to content

Commit b5c23d5

Browse files
committed
tweak prev/next link styles
1 parent 6711be8 commit b5c23d5

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/layouts/ContentsLayout.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,25 @@ export function ContentsLayout({ children, meta, classes, tableOfContents }) {
188188
{(prev || next) && (
189189
<>
190190
<hr className="border-gray-200 mt-10 mb-4" />
191-
<div className="flex justify-between leading-7 font-medium">
191+
<div className="flex leading-6 font-medium">
192192
{prev && (
193193
<Link href={prev.href}>
194-
<a>{prev.shortTitle || prev.title}</a>
194+
<a className="flex mr-8">
195+
<span aria-hidden="true" className="mr-2">
196+
197+
</span>
198+
{prev.shortTitle || prev.title}
199+
</a>
195200
</Link>
196201
)}
197202
{next && (
198203
<Link href={next.href}>
199-
<a>{next.shortTitle || next.title}</a>
204+
<a className="flex text-right ml-auto">
205+
{next.shortTitle || next.title}
206+
<span aria-hidden="true" className="ml-2">
207+
208+
</span>
209+
</a>
200210
</Link>
201211
)}
202212
</div>

0 commit comments

Comments
 (0)