fix: catalog style

This commit is contained in:
Femoon
2024-04-24 17:40:56 +08:00
parent afb3cf0b95
commit e78151cca2
12 changed files with 12 additions and 12 deletions

View File

@@ -76,7 +76,7 @@ const Catalog = ({ toc }) => {
notion-table-of-contents-item-indent-level-${tocItem.indentLevel} `}
>
<span style={{ display: 'inline-block', marginLeft: tocItem.indentLevel * 16 }}
className={`${activeSection === id && ' font-bold text-green-500 underline'}`}
className={`truncate ${activeSection === id ? 'font-bold text-green-500 underline' : ''}`}
>
{tocItem.text}
</span>

View File

@@ -102,7 +102,7 @@ const LayoutBase = props => {
{/* 桌面端右侧 */}
{fullWidth
? null
: <div className={`hidden xl:block border-l dark:border-transparent w-96 relative z-10 ${siteConfig('MEDIUM_RIGHT_PANEL_DARK', null, CONFIG) ? 'bg-hexo-black-gray dark' : ''}`}>
: <div className={`hidden xl:block border-l dark:border-transparent w-80 flex-shrink-0 relative z-10 ${siteConfig('MEDIUM_RIGHT_PANEL_DARK', null, CONFIG) ? 'bg-hexo-black-gray dark' : ''}`}>
<div className='py-14 px-6 sticky top-0'>
<Tabs>
{slotRight}