From 8c893b234d76c4f8f754aa04ff08f120182e8940 Mon Sep 17 00:00:00 2001 From: Benjamin Leonard Date: Tue, 17 Dec 2024 11:50:29 +0000 Subject: [PATCH 1/2] Shared link and code styles --- components/src/asciidoc/TableOfContents.tsx | 4 +- components/src/assets/asciidoc.css | 113 ++++++++++++-------- 2 files changed, 71 insertions(+), 46 deletions(-) diff --git a/components/src/asciidoc/TableOfContents.tsx b/components/src/asciidoc/TableOfContents.tsx index 4ac7af74..69f29b73 100644 --- a/components/src/asciidoc/TableOfContents.tsx +++ b/components/src/asciidoc/TableOfContents.tsx @@ -293,7 +293,7 @@ export const DesktopOutline = ({ } if (toc && toc.length > 0) { - return + return } return null @@ -342,7 +342,7 @@ export const SmallScreenOutline = ({ Date: Tue, 17 Dec 2024 11:58:44 +0000 Subject: [PATCH 2/2] Small vh tweak --- components/src/asciidoc/TableOfContents.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/src/asciidoc/TableOfContents.tsx b/components/src/asciidoc/TableOfContents.tsx index 69f29b73..6afbf75a 100644 --- a/components/src/asciidoc/TableOfContents.tsx +++ b/components/src/asciidoc/TableOfContents.tsx @@ -357,7 +357,7 @@ export const SmallScreenOutline = ({ - +
{renderToc(toc)}