💅 微调颜色比例,固定夜间模式按钮

This commit is contained in:
tangly1024
2021-09-28 13:29:47 +08:00
parent 82c32e1b6f
commit 9871d136bd
9 changed files with 26 additions and 22 deletions

View File

@@ -5,8 +5,8 @@ const RightAside = ({ toc }) => {
// 无目录就直接返回空
if (toc.length < 1) return <></>
return <aside className='bg-gray-800 px-5 hidden lg:block py-5 hover:shadow-2xl duration-200'>
<div className='sticky top-8 w-60 overflow-x-auto'>
return <aside className='bg-gray-100 dark:bg-gray-800 px-5 hidden lg:block py-5 hover:shadow-2xl duration-200'>
<div className='sticky top-8 w-52 overflow-x-auto'>
<Toc toc={toc}/>
</div>
</aside>