Skip to content

Commit 1f86701

Browse files
📝 Docs: 修复移动端侧边栏折叠状态异常 (#3414)
1 parent dd0525e commit 1f86701

File tree

3 files changed

+402
-393
lines changed

3 files changed

+402
-393
lines changed

website/src/components/Store/Layout.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useVersionedSidebar } from "@nullbot/docusaurus-plugin-getsidebar/clien
66
import { SidebarContentFiller } from "@nullbot/docusaurus-theme-nonepress/contexts";
77

88
import BackToTopButton from "@theme/BackToTopButton";
9+
import Heading from "@theme/Heading";
910
import Layout from "@theme/Layout";
1011
import Page from "@theme/Page";
1112

@@ -28,7 +29,9 @@ function StorePage({ title, children }: Props): React.ReactNode {
2829
<Page hideTableOfContents reduceContentWidth={false} sidebarId={SIDEBAR_ID}>
2930
<SidebarContentFiller items={sidebarItems} />
3031
<article className="prose max-w-full">
31-
<h1 className="store-title">{title}</h1>
32+
<Heading as="h1" className="store-title">
33+
{title}
34+
</Heading>
3235
{children}
3336
</article>
3437
</Page>

website/src/components/Store/Toolbar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function ToolbarFilter({
7474
tabIndex={0}
7575
>
7676
<FontAwesomeIcon icon={icon} />
77-
{label}
77+
<span className="hidden sm:block">{label}</span>
7878
</label>
7979
<div className="dropdown-content store-toolbar-dropdown">
8080
<input

0 commit comments

Comments
 (0)