📝 Docs: 修复移动端侧边栏折叠状态异常 (#3414)

This commit is contained in:
StarHeart
2025-03-29 12:04:05 +08:00
committed by GitHub
parent dd0525eaee
commit 1f8670160a
3 changed files with 389 additions and 380 deletions

View File

@@ -6,6 +6,7 @@ import { useVersionedSidebar } from "@nullbot/docusaurus-plugin-getsidebar/clien
import { SidebarContentFiller } from "@nullbot/docusaurus-theme-nonepress/contexts";
import BackToTopButton from "@theme/BackToTopButton";
import Heading from "@theme/Heading";
import Layout from "@theme/Layout";
import Page from "@theme/Page";
@@ -28,7 +29,9 @@ function StorePage({ title, children }: Props): React.ReactNode {
<Page hideTableOfContents reduceContentWidth={false} sidebarId={SIDEBAR_ID}>
<SidebarContentFiller items={sidebarItems} />
<article className="prose max-w-full">
<h1 className="store-title">{title}</h1>
<Heading as="h1" className="store-title">
{title}
</Heading>
{children}
</article>
</Page>