mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
fix: make docs page wrapper take full height (#7025)
* fix: make page wrapper take full height * Better solution
This commit is contained in:
parent
0b3b642cfb
commit
39486682ba
3 changed files with 7 additions and 2 deletions
|
@ -20,7 +20,7 @@ export default function DocPageLayout({children}: Props): JSX.Element {
|
||||||
const sidebar = useDocsSidebar();
|
const sidebar = useDocsSidebar();
|
||||||
const [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false);
|
const [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false);
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout wrapperClassName={styles.docsWrapper}>
|
||||||
<BackToTopButton />
|
<BackToTopButton />
|
||||||
<div className={styles.docPage}>
|
<div className={styles.docPage}>
|
||||||
{sidebar && (
|
{sidebar && (
|
||||||
|
|
|
@ -10,10 +10,14 @@
|
||||||
--doc-sidebar-hidden-width: 30px;
|
--doc-sidebar-hidden-width: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.docPage {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.docsWrapper,
|
||||||
.docPage,
|
.docPage,
|
||||||
.docMainContainer {
|
.docMainContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.docSidebarContainer {
|
.docSidebarContainer {
|
||||||
|
|
|
@ -77,6 +77,7 @@ export default function DocPage(props: Props): JSX.Element {
|
||||||
/>
|
/>
|
||||||
<HtmlClassNameProvider
|
<HtmlClassNameProvider
|
||||||
className={clsx(
|
className={clsx(
|
||||||
|
// TODO: it should be removed from here
|
||||||
ThemeClassNames.wrapper.docsPages,
|
ThemeClassNames.wrapper.docsPages,
|
||||||
ThemeClassNames.page.docsDocPage,
|
ThemeClassNames.page.docsDocPage,
|
||||||
props.versionMetadata.className,
|
props.versionMetadata.className,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue