mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +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 [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false);
|
||||
return (
|
||||
<Layout>
|
||||
<Layout wrapperClassName={styles.docsWrapper}>
|
||||
<BackToTopButton />
|
||||
<div className={styles.docPage}>
|
||||
{sidebar && (
|
||||
|
|
|
@ -10,10 +10,14 @@
|
|||
--doc-sidebar-hidden-width: 30px;
|
||||
}
|
||||
|
||||
.docPage {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.docsWrapper,
|
||||
.docPage,
|
||||
.docMainContainer {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.docSidebarContainer {
|
||||
|
|
|
@ -77,6 +77,7 @@ export default function DocPage(props: Props): JSX.Element {
|
|||
/>
|
||||
<HtmlClassNameProvider
|
||||
className={clsx(
|
||||
// TODO: it should be removed from here
|
||||
ThemeClassNames.wrapper.docsPages,
|
||||
ThemeClassNames.page.docsDocPage,
|
||||
props.versionMetadata.className,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue