Skip to content

Commit

Permalink
Finalized header responsiveness (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidQuartz authored Feb 4, 2022
1 parent e87e5cb commit e6e9b8f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion geonode_mapstore_client/client/js/routes/Viewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ function ViewerRoute({
// hide the naviagtion bar is a recource is being viewed
if (!loading) {
document.getElementById('gn-topbar')?.classList.add('hide-navigation');
document.querySelector('.gn-menu-content-bottom')?.classList.add('hide-search-bar');
}
return () => document.getElementById('gn-topbar')?.classList.remove('hide-navigation');
return () => {
document.getElementById('gn-topbar')?.classList.remove('hide-navigation');
document.querySelector('.gn-menu-content-bottom')?.classList.remove('hide-search-bar');
};
}, [loading]);

return (
Expand Down
4 changes: 4 additions & 0 deletions geonode_mapstore_client/client/themes/geonode/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,7 @@ body {
z-index: 10;
}
}

.gn-theme {
overflow-x: hidden;
}
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,11 @@ a.gn-action-navbar-breadcrumb-link {
display: unset;
}
}
}
}

@media (max-width: 748px) {
nav#gn-brand-navbar div.gn-menu-content-bottom.hide-search-bar {
display: none;
}

}

0 comments on commit e6e9b8f

Please sign in to comment.