Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
fix(SiteNav): Fix misaligned menu for mobile / smaller screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCoplan committed Oct 1, 2018
1 parent d0cdf70 commit afe0525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/Grid/GridCol.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type Props = {|
+offsetMd?: number,
+offsetLg?: number,
+offsetXl?: number,
+ignoreCol?: boolean,
|};

function GridCol({
Expand All @@ -47,10 +48,11 @@ function GridCol({
offsetMd = 0,
offsetLg = 0,
offsetXl = 0,
ignoreCol = false,
}: Props): React.Node {
const classes = cn(
{
col: true,
col: !ignoreCol,
[`col-${width}`]: width,
[`col-xs-${xs}`]: xs,
[`col-xs-auto`]: xsAuto,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Site/SiteNav.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const SiteNav = ({
<Container>
{children || (
<Grid.Row className="align-items-center">
<Grid.Col lg={3} className="ml-auto">
<Grid.Col lg={3} className="ml-auto" ignoreCol={true}>
{/* @TODO: add InlineSearchForm */}
{/* {rightColumnComponent || (withSearchForm && <InlineSearchForm />)} */}
{rightColumnComponent}
Expand Down

0 comments on commit afe0525

Please sign in to comment.