mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
next主题小屏模式的右侧栏显示
This commit is contained in:
@@ -25,7 +25,7 @@ const SideAreaRight = (props) => {
|
||||
const { tagOptions, currentTag, slot, categoryOptions, currentCategory, notice } = props
|
||||
const { locale } = useGlobal()
|
||||
const router = useRouter()
|
||||
return (<aside id='right' className={(BLOG.LAYOUT_SIDEBAR_REVERSE ? 'mr-4' : 'ml-4') + ' space-y-4 hidden 2xl:block flex-col w-60 relative z-10'}>
|
||||
return (<aside id='right' className={(BLOG.LAYOUT_SIDEBAR_REVERSE ? 'mr-4' : 'ml-4') + ' space-y-4 hidden lg:block flex-col w-60 relative z-10'}>
|
||||
|
||||
{CONFIG_NEXT.RIGHT_AD && <Card className='mb-2'>
|
||||
{/* 展示广告 */}
|
||||
@@ -40,12 +40,10 @@ const SideAreaRight = (props) => {
|
||||
/>
|
||||
</Card>}
|
||||
|
||||
<div className="sticky top-0 space-y-4">
|
||||
<div>
|
||||
{notice && <Card>
|
||||
<Announcement post={notice} />
|
||||
</Card>}
|
||||
</div>
|
||||
<div className="sticky top-0 space-y-4 w-full">
|
||||
{notice && <Card>
|
||||
<Announcement post={notice} />
|
||||
</Card>}
|
||||
|
||||
{slot}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user