Skip to content

Commit

Permalink
Avoid scroll problems when menu becomes fixed. Fix z-index problems w…
Browse files Browse the repository at this point in the history
…ith loaders and fixed menus
  • Loading branch information
javierbrea committed Feb 23, 2019
1 parent a095d46 commit 51c5372
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/container-content/ContentContainer.js
Expand Up @@ -146,6 +146,11 @@ export class ContentContainer extends Component {
{search}
{hasMenu ? <Menu.Menu position="right">{menu}</Menu.Menu> : null}
</Menu>
{this.state.fixedMenu ? (
<Menu className="content-container__menu--top">
<Menu.Item />
</Menu>
) : null}
</Visibility>
) : null}
</Responsive>
Expand Down
4 changes: 4 additions & 0 deletions src/components/container-content/contentContainer.css
Expand Up @@ -25,3 +25,7 @@
.content-container__header {
min-height: 30px;
}

.ui.top.fixed.content-container__menu--top.menu, .ui.bottom.fixed.content-container__menu--bottom--search.menu {
z-index:1100;
}
6 changes: 6 additions & 0 deletions src/components/layout-sidebar/sideBarLayout.css
Expand Up @@ -10,3 +10,9 @@
max-height: 100vh;
height: 100%;
}

.ui.top.fixed.sidebar-layout__header-menu.menu,.ui.bottom.fixed.menu {
z-index:1200;
}


0 comments on commit 51c5372

Please sign in to comment.