Skip to content

Commit

Permalink
fix side bar mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
lehvolk committed Jul 24, 2023
1 parent 486c761 commit 04379de
Showing 1 changed file with 23 additions and 33 deletions.
56 changes: 23 additions & 33 deletions frontend/src/components/SideNav.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
import { DocSearch } from '@docsearch/react';
import startCase from 'lodash/startCase';
import classNames from 'classnames';
import * as React from 'react';
import Nav from 'react-bootstrap/Nav';

import styled from 'astroturf';
import Button from 'react-bootstrap/Button';
import Collapse from 'react-bootstrap/Collapse';

const MenuButton = styled(Button).attrs({ variant: 'link' })`
composes: p-0 d-md-none ms-3 from global;
line-height: 1;
color: #212529;
`;
import Navbar from "react-bootstrap/Navbar";

const SidePanel = styled('div')`
@import '../css/theme';
Expand Down Expand Up @@ -182,31 +174,29 @@ class SideNav extends React.Component {
const { location, ...props } = this.props;
return (
<SidePanel {...props}>
<Collapse in={this.state.collapsed}>
<OverflowWrapper>
<TableOfContents role="complementary">
<NavSection
heading="Documentation"
path="/documentation"
location={location}
items={documentation}
/>
<NavSection
heading="Usage Examples"
path="/usage-examples"
<OverflowWrapper>
<TableOfContents role="complementary">
<NavSection
heading="Documentation"
path="/documentation"
location={location}
items={usageExamples}
/>
<NavSection
heading="About"
path="/about"
location={location}
items={about}
/>

</TableOfContents>
</OverflowWrapper>
</Collapse>
items={documentation}
/>
<NavSection
heading="Usage Examples"
path="/usage-examples"
location={location}
items={usageExamples}
/>
<NavSection
heading="About"
path="/about"
location={location}
items={about}
/>

</TableOfContents>
</OverflowWrapper>
</SidePanel>
);
}
Expand Down

0 comments on commit 04379de

Please sign in to comment.