diff --git a/ui/app-components/src/Sidebar/Sidebar.tsx b/ui/app-components/src/Sidebar/Sidebar.tsx index c15f0f18f..f00761fb2 100644 --- a/ui/app-components/src/Sidebar/Sidebar.tsx +++ b/ui/app-components/src/Sidebar/Sidebar.tsx @@ -75,7 +75,7 @@ export const Sidebar: FC = ({ sx={{ position: !responsive ? 'fixed' : undefined, height: '100vh', - width: 'inherit', + width, overflowY: 'auto', a: { '&.active': { diff --git a/ui/app/src/DocPage/DocPage.tsx b/ui/app/src/DocPage/DocPage.tsx index 1608ae59e..6c508c40e 100644 --- a/ui/app/src/DocPage/DocPage.tsx +++ b/ui/app/src/DocPage/DocPage.tsx @@ -30,7 +30,7 @@ export const BasePage: FC = ({ pagesFn }) => { 0, ); return ( - + = ({ pagesFn }) => { - + ); }; diff --git a/ui/app/src/SideContext/SideContext.tsx b/ui/app/src/SideContext/SideContext.tsx index 4ef48dce9..3b5052ba6 100644 --- a/ui/app/src/SideContext/SideContext.tsx +++ b/ui/app/src/SideContext/SideContext.tsx @@ -61,7 +61,7 @@ export const SideContext: FC = ({ pageRef }) => { {({ SidebarClose, SidebarToggle, collapsed, responsive }) => (
- + {responsive && (
diff --git a/ui/app/src/Sidebar/Sidebar.tsx b/ui/app/src/Sidebar/Sidebar.tsx index a4ccfedb1..e6489cd2a 100644 --- a/ui/app/src/Sidebar/Sidebar.tsx +++ b/ui/app/src/Sidebar/Sidebar.tsx @@ -77,7 +77,8 @@ export const SidebarBase: FC = ({ const { SidebarClose, responsive } = useContext(SidebarContext); const { storeProvider } = useContext(BlockContext); const config = storeProvider.config; - const { siteTitle } = config || {}; + const { pages = {} } = config || {}; + const { label = '' } = pages[type]; const menuItems = useMemo(() => { if (storeProvider) { const docs: Pages = storeProvider.getPageList(type); @@ -110,7 +111,9 @@ export const SidebarBase: FC = ({
)} - {propsTitle || siteTitle} + + {propsTitle || label} +