Merge pull request #927 from tangly1024/fix/next-search

next主题小屏模式的右侧栏显示
This commit is contained in:
tangly1024
2023-03-27 13:41:48 +08:00
committed by GitHub

View File

@@ -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}