Link section padding [Fixes #71] (#106)

* rename to LinksList

* add padding after sections in LinksList

* reduce padding between sections to 1.5rem
This commit is contained in:
Paul Wackerow 2022-12-05 17:37:44 +01:00 committed by GitHub
parent 8b1b80604e
commit 1f90789712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ export const LinksList: FC<LinksListProps> = ({ links }) => {
const split = to?.split('/')
const isActive = slug && split && split[split.length - 1] === slug[slug.length - 1];
return to ? (
<Stack key={id} _hover={{ background: 'primary', color: 'bg' }} data-group>
<Stack key={id} pb={items ? 6 : 0} _hover={{ background: 'primary', color: 'bg' }} data-group>
<NextLink href={to} passHref key={id}>
<Link textDecoration='none !important'>
<Text
@ -44,7 +44,7 @@ export const LinksList: FC<LinksListProps> = ({ links }) => {
{items && <LinksList links={items} />}
</Stack>
) : (
<Stack key={id}>
<Stack key={id} pb={6}>
<Text textStyle='docs-nav-links' color={items ? 'primary' : 'body'}>
{id}
</Text>

View File

@ -3,6 +3,6 @@ export * from './Code';
export * from './DocsLinks';
export * from './DocsNav';
export * from './DocumentNav';
export * from './LinkList';
export * from './LinksList';
export * from './Note';
export { default } from './MDComponents';