fix: remove the Container component from the docsNavContainer (#1599)

In this case, the `docsNavContainer` does not pick up any styles or attributes from the `container` component it is wrapped in.

It does however pick up the pesky `.container` className, which when paired with bootstrap, messes up the styling of the top navigation in mobile.

This change is completely non-destructive, but helps enable the use of bootstrap on top of Docusaurus.
This commit is contained in:
Shawn Tabrizi 2019-06-13 18:05:41 +02:00 committed by Yangshun Tay
parent 6bdb38c524
commit b1023aa9ac
2 changed files with 4 additions and 6 deletions

View file

@ -6,7 +6,6 @@
*/
const React = require('react');
const Container = require('./Container.js');
const SideNav = require('./nav/SideNav.js');
const MetadataBlog = require('./MetadataBlog.js');
@ -42,7 +41,7 @@ class BlogSidebar extends React.Component {
category: blogSidebarTitle,
};
return (
<Container className="docsNavContainer" id="docsNav" wrapper={false}>
<div className="docsNavContainer" id="docsNav">
<SideNav
language={this.props.language}
root={`${this.props.config.baseUrl}blog/`}
@ -50,7 +49,7 @@ class BlogSidebar extends React.Component {
contents={contents}
current={current}
/>
</Container>
</div>
);
}
}