Skip to content

Commit 7d21af5

Browse files
committed
Fix sidebar position on non-mobile (after breaking it in the last commits of "sticky" mobile topbar)
1 parent bb7a508 commit 7d21af5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/Layout/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class Layout extends React.Component {
2121
<Helmet>
2222
<title>{subtitle}Eyal Roth</title>
2323
</Helmet>
24-
<Sidebar globalLinkId={this.props.globalLinkId} />
2524
<div className="content-wrap">
25+
<Sidebar globalLinkId={this.props.globalLinkId} />
2626
{children}
2727
</div>
2828
<Footer />

src/components/Sidebar/style.scss

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ $transition-timing: 0.2s;
1717
transition: transform 0.5s ease-out;
1818
z-index: 1;
1919
height: $topbar-height;
20+
top: 0;
2021

2122
@include disabled {
2223
transform: translateY(-$topbar-height - 10);
@@ -194,6 +195,7 @@ $transition-timing: 0.2s;
194195
transition: unset;
195196
z-index: unset;
196197
height: unset;
198+
top: unset;
197199

198200
@include disabled {
199201
transform: unset;

0 commit comments

Comments
 (0)