Skip to content

Commit

Permalink
[DURACOM-180] Prevent header from covering media viewer controls
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-negretti committed Nov 9, 2023
1 parent a3e6d9b commit f73c616
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div [ngClass]="{'open': !(isNavBarCollapsed | async)}">
<div [class.open]="!(isNavBarCollapsed | async)" id="header-navbar-wrapper">
<ds-themed-header></ds-themed-header>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:host {
// The header-navbar-wrapper should not have a z-index, otherwise it would cover the media viewer despite its higher z-index
position: relative;
div#header-navbar-wrapper {
border-bottom: 5px var(--ds-header-navbar-border-bottom-color) solid;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { HeaderNavbarWrapperComponent as BaseComponent } from '../../../../app/h
*/
@Component({
selector: 'ds-header-navbar-wrapper',
styleUrls: ['../../../../app/header-nav-wrapper/header-navbar-wrapper.component.scss'],
styleUrls: ['header-navbar-wrapper.component.scss'],
templateUrl: 'header-navbar-wrapper.component.html',
})
export class HeaderNavbarWrapperComponent extends BaseComponent {
Expand Down
7 changes: 5 additions & 2 deletions src/themes/dspace/app/navbar/navbar.component.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
nav.navbar {
border-top: 1px var(--ds-header-navbar-border-top-color) solid;
border-bottom: 5px var(--ds-header-navbar-border-bottom-color) solid;
align-items: baseline;

.navbar-inner-container {
border-top: 1px var(--ds-header-navbar-border-top-color) solid;
}
}

.navbar-nav {
Expand All @@ -16,6 +18,7 @@ nav.navbar {
position: absolute;
overflow: hidden;
height: 0;
z-index: var(--ds-nav-z-index);
&.open {
height: 100vh; //doesn't matter because wrapper is sticky
}
Expand Down

0 comments on commit f73c616

Please sign in to comment.