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

Commit 301b9b2

Browse files
authored
Merge pull request #310 from tabler/misaligned-menu
fix(SiteNav): Fix misaligned menu for mobile / smaller screens.
2 parents d0cdf70 + afe0525 commit 301b9b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/Grid/GridCol.react.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type Props = {|
2424
+offsetMd?: number,
2525
+offsetLg?: number,
2626
+offsetXl?: number,
27+
+ignoreCol?: boolean,
2728
|};
2829

2930
function GridCol({
@@ -47,10 +48,11 @@ function GridCol({
4748
offsetMd = 0,
4849
offsetLg = 0,
4950
offsetXl = 0,
51+
ignoreCol = false,
5052
}: Props): React.Node {
5153
const classes = cn(
5254
{
53-
col: true,
55+
col: !ignoreCol,
5456
[`col-${width}`]: width,
5557
[`col-xs-${xs}`]: xs,
5658
[`col-xs-auto`]: xsAuto,

src/components/Site/SiteNav.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const SiteNav = ({
5454
<Container>
5555
{children || (
5656
<Grid.Row className="align-items-center">
57-
<Grid.Col lg={3} className="ml-auto">
57+
<Grid.Col lg={3} className="ml-auto" ignoreCol={true}>
5858
{/* @TODO: add InlineSearchForm */}
5959
{/* {rightColumnComponent || (withSearchForm && <InlineSearchForm />)} */}
6060
{rightColumnComponent}

0 commit comments

Comments
 (0)