From c0102bda68e810c7277ba1398fa58a2dcb7991f4 Mon Sep 17 00:00:00 2001 From: Dongjoon Lee Date: Fri, 23 Dec 2022 03:20:54 +0900 Subject: [PATCH] fix(theme-classic): content container grow to take all the available space (#8463) fix https://github.com/facebook/docusaurus/issues/8369 fix https://github.com/facebook/docusaurus/pull/8426 --- .../src/theme/DocRoot/Layout/styles.module.css | 1 + .../theme/DocSidebar/Desktop/CollapseButton/styles.module.css | 1 + .../docusaurus-theme-classic/src/theme/Layout/styles.module.css | 2 ++ 3 files changed, 4 insertions(+) diff --git a/packages/docusaurus-theme-classic/src/theme/DocRoot/Layout/styles.module.css b/packages/docusaurus-theme-classic/src/theme/DocRoot/Layout/styles.module.css index d80285c4c1c0..7366e6d504bb 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocRoot/Layout/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/DocRoot/Layout/styles.module.css @@ -12,4 +12,5 @@ .docsWrapper { display: flex; + flex: 1 0 auto; } diff --git a/packages/docusaurus-theme-classic/src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css b/packages/docusaurus-theme-classic/src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css index 44f11f21cc75..c5026e8bf154 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css @@ -43,4 +43,5 @@ .collapseSidebarButton { display: none; + margin: 0; } diff --git a/packages/docusaurus-theme-classic/src/theme/Layout/styles.module.css b/packages/docusaurus-theme-classic/src/theme/Layout/styles.module.css index b667fe7911e9..162cbd125744 100644 --- a/packages/docusaurus-theme-classic/src/theme/Layout/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/Layout/styles.module.css @@ -12,6 +12,8 @@ body { .mainWrapper { flex: 1 0 auto; + display: flex; + flex-direction: column; } /* Docusaurus-specific utility class */