修复next主题

This commit is contained in:
tangly
2022-10-21 14:37:16 +08:00
parent 56e4836260
commit 2acd5cc58a
2 changed files with 3 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ const LayoutBase = (props) => {
if (fb.length === 0) {
floatButtonGroup?.current?.classList.replace('bottom-24', 'bottom-12')
} else {
floatButtonGroup?.current?.classList.remove('bottom-12', 'bottom-24')
floatButtonGroup?.current?.classList.replace('bottom-12', 'bottom-24')
}
document.addEventListener('scroll', scrollListener)
@@ -73,7 +73,8 @@ const LayoutBase = (props) => {
<section id='center' className={`${CONFIG_NEXT.NAV_TYPE !== 'normal' ? 'mt-40' : ''} lg:max-w-3xl xl:max-w-4xl flex-grow md:mt-0 min-h-screen w-full`} ref={targetRef}>
{onLoading ? <LoadingCover/> : <> {children}</> }
</section>
<SideAreaRight targetRef={targetRef} slot={rightAreaSlot} {...props}/>
{/* 右侧栏样式 */}
{ CONFIG_NEXT.RIGHT_BAR && <SideAreaRight targetRef={targetRef} slot={rightAreaSlot} {...props}/> }
</main>
{/* 右下角悬浮 */}

View File

@@ -22,9 +22,6 @@ import BLOG from '@/blog.config'
const SideAreaRight = (props) => {
const { tags, currentTag, slot, categories, currentCategory } = props
const { locale } = useGlobal()
if (!CONFIG_NEXT.RIGHT_BAR) {
return <></>
}
const router = useRouter()
return (<aside id='right' className='hidden 2xl:block flex-col w-60 ml-4'>