diff --git a/.changeset/green-eagles-hide.md b/.changeset/green-eagles-hide.md new file mode 100644 index 000000000..2004fee14 --- /dev/null +++ b/.changeset/green-eagles-hide.md @@ -0,0 +1,5 @@ +--- +"@rspress/theme-default": patch +--- + +Set outline title in mobile view to `themeConfig.outlineTitle` diff --git a/packages/theme-default/src/components/LocalSideBar/index.tsx b/packages/theme-default/src/components/LocalSideBar/index.tsx index f163c2465..9006e987e 100644 --- a/packages/theme-default/src/components/LocalSideBar/index.tsx +++ b/packages/theme-default/src/components/LocalSideBar/index.tsx @@ -9,10 +9,12 @@ import { SvgWrapper } from '../SvgWrapper'; import { CSSTransition } from 'react-transition-group'; export function SideMenu({ + outlineTitle, beforeSidebar, afterSidebar, uiSwitch, }: { + outlineTitle: string; beforeSidebar?: React.ReactNode; afterSidebar?: React.ReactNode; uiSwitch?: UISwitchResult; @@ -76,7 +78,7 @@ export function SideMenu({ className="flex-center ml-auto" ref={outlineButtonRef} > - On this page + {outlineTitle}