Skip to content

Commit

Permalink
fix: make page wrapper take full height
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Mar 26, 2022
1 parent 4957ec9 commit 5870f0f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import DocPageLayoutMain from '@theme/DocPage/Layout/Main';

import styles from './styles.module.css';

import {useDocsSidebar} from '@docusaurus/theme-common';
import {useDocsSidebar, ThemeClassNames} from '@docusaurus/theme-common';

export default function DocPageLayout({children}: Props): JSX.Element {
const sidebar = useDocsSidebar();
const [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false);
return (
<Layout>
<Layout wrapperClassName={ThemeClassNames.wrapper.docsPages}>
<BackToTopButton />
<div className={styles.docPage}>
{sidebar && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@
--doc-sidebar-hidden-width: 30px;
}

:global(.docs-wrapper) {
display: flex;
}

.docPage {
width: 100%;
}

.docPage,
.docMainContainer {
display: flex;
width: 100%;
}

.docSidebarContainer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export default function DocPage(props: Props): JSX.Element {
/>
<HtmlClassNameProvider
className={clsx(
ThemeClassNames.wrapper.docsPages,
ThemeClassNames.page.docsDocPage,
props.versionMetadata.className,
)}>
Expand Down

0 comments on commit 5870f0f

Please sign in to comment.