Skip to content

Commit

Permalink
Merge pull request #904 from push-protocol/901-fix-rewards-roadmap
Browse files Browse the repository at this point in the history
Fix Docs Issue
  • Loading branch information
rohitmalhotra1420 authored Oct 14, 2024
2 parents 80040be + 55645d0 commit 09f7423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
7 changes: 1 addition & 6 deletions src/components/DocsHub/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down
8 changes: 3 additions & 5 deletions src/theme/Navbar/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -226,16 +225,15 @@ export default function NavbarContent() {
<>
{!mobileSidebar.disabled && <NavbarMobileSidebarToggle />}
<NavbarLogo />
{/* <NavbarItems items={leftItems} /> */}

{/* Change Header from docs to blog if required */}
{!isLaptopM &&
(pathname.startsWith(baseURL + '/docs') ? (
<NavItem to={useBaseUrl('/docs')} aria-label='Push Docs'>
(pathname?.startsWith(baseURL + '/docs') ? (
<NavItem to={baseURL + '/docs'} aria-label='Push Docs'>
Docs
</NavItem>
) : (
<NavItem to={useBaseUrl('/blog')} aria-label='Push Blog'>
<NavItem to={baseURL + '/blog'} aria-label='Push Blog'>
Blog
</NavItem>
))}
Expand Down

0 comments on commit 09f7423

Please sign in to comment.