Skip to content

Commit 943fa8a

Browse files
author
Gilyoung
committed
Recalculate the height of the content-container if the header is not existed
1 parent a4ed048 commit 943fa8a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/App/App.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
padding: 10px;
1515
}
1616
}
17+
18+
&.remove-header {
19+
height: 100vh;
20+
}
1721
}
1822

1923
.custom-toast {

src/components/App/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ class App extends React.Component<Props, any> {
6666
>
6767
{isAuthenticated && isSideMenuOpen && <SideMenu />}
6868
</ReactCSSTransitionGroup>
69-
<div className="content-container">
69+
<div
70+
className={`content-container ${!isAuthenticated &&
71+
"remove-header"}`}
72+
>
7073
<Switch>
7174
<Route path="/login" component={Login} />
7275
<PrivateRoute

0 commit comments

Comments
 (0)