diff --git a/components/Progress.js b/components/Progress.js index 7e8a2550..23ced0be 100644 --- a/components/Progress.js +++ b/components/Progress.js @@ -25,7 +25,7 @@ const Progress = ({ targetRef, showPercent = true }) => { }, [percent]) return (
-
+
{showPercent &&
{percent}%
}
) diff --git a/components/Tabs.js b/components/Tabs.js index 337d5715..f7239506 100644 --- a/components/Tabs.js +++ b/components/Tabs.js @@ -39,7 +39,7 @@ const Tabs = ({ children }) => { })} {children.map((item, index) => { - return
+ return
{item}
})} diff --git a/components/Toc.js b/components/Toc.js index 9d8c6672..73df6bd7 100644 --- a/components/Toc.js +++ b/components/Toc.js @@ -71,7 +71,7 @@ const Toc = ({ toc, targetRef }) => { display: 'inline-block', marginLeft: tocItem.indentLevel * 16 }} - className={`${activeSection === id && ' font-bold text-red-400 animate__animated animate__jello'}`} + className={`${activeSection === id && ' font-bold text-red-400 underline'}`} > {tocItem.text}