Skip to content

Commit

Permalink
Work around code blocks overlapping the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
fk committed Mar 13, 2018
1 parent 1436f09 commit c62327e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/src/layouts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ class DefaultLayout extends React.Component {
const hasSidebar =
isDoc || isTutorial || isFeature || isPackage || isPackageReadme
const isSearchSource = hasSidebar || isBlog

const packageSidebarWidth = rhythm(17)

const packageSidebarWidth = rhythm(17)

const leftPadding = rhythmSize => {
if (this.props.location.pathname.slice(0, 9) === `/packages`) {
Expand Down Expand Up @@ -108,6 +107,7 @@ class DefaultLayout extends React.Component {
display: `none`,
width: `100vw`,
padding: rhythm(3 / 4),
zIndex: 1,
[presets.Desktop]: {
...sidebarStyles,
position: `fixed`,
Expand Down

0 comments on commit c62327e

Please sign in to comment.