From 55645d098a44ba193a4fef462e6328818c4c242b Mon Sep 17 00:00:00 2001 From: corlard3y Date: Mon, 14 Oct 2024 13:29:23 +0100 Subject: [PATCH] update docs issue --- src/components/DocsHub/styles.css | 7 +------ src/theme/Navbar/Content/index.js | 8 +++----- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/components/DocsHub/styles.css b/src/components/DocsHub/styles.css index 561c73c47f6..ff4d9901a84 100644 --- a/src/components/DocsHub/styles.css +++ b/src/components/DocsHub/styles.css @@ -242,8 +242,7 @@ .row, .docsWrapper_node_modules-\@docusaurus-theme-classic-lib-theme-DocRoot-Layout-styles-module main .container .row { display: flex; - margin: 0px; - flex-direction: column; + margin-left: 5px; } .docMainContainerEnhanced_node_modules-\@docusaurus-theme-classic-lib-theme-DocRoot-Layout-Main-styles-module @@ -261,10 +260,6 @@ display: none; } -.docsWrapper_node_modules-\@docusaurus-theme-classic-lib-theme-DocRoot-Layout-styles-module .theme-doc-footer, -.docsWrapper_node_modules-\@docusaurus-theme-classic-lib-theme-DocRoot-Layout-styles-module .pagination-nav { - display: none; -} .docsWrapper_node_modules-\@docusaurus-theme-classic-lib-theme-DocRoot-Layout-styles-module .theme-doc-sidebar-container li li { margin-right: 10px; diff --git a/src/theme/Navbar/Content/index.js b/src/theme/Navbar/Content/index.js index 9169069b369..4f1fea83922 100644 --- a/src/theme/Navbar/Content/index.js +++ b/src/theme/Navbar/Content/index.js @@ -35,7 +35,6 @@ import { BsChevronDown } from 'react-icons/bs'; import styled from 'styled-components'; import { HeaderList } from '../../../config/HeaderList'; import styles from './styles.module.css'; -import useBaseUrl from '@docusaurus/useBaseUrl'; import { useSiteBaseUrl } from '@site/src/utils/useSiteBaseUrl'; const defaultMobileMenuState = { @@ -226,16 +225,15 @@ export default function NavbarContent() { <> {!mobileSidebar.disabled && } - {/* */} {/* Change Header from docs to blog if required */} {!isLaptopM && - (pathname.startsWith(baseURL + '/docs') ? ( - + (pathname?.startsWith(baseURL + '/docs') ? ( + Docs ) : ( - + Blog ))}