Skip to content

Commit

Permalink
[DURACOM-180] Prevent header from covering media viewer controls (bas…
Browse files Browse the repository at this point in the history
…e theme)

(cherry picked from commit c042cd8)
  • Loading branch information
davide-negretti authored and github-actions[bot] committed Nov 9, 2023
1 parent 5f46b63 commit c6ade09
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div [ngClass]="{'open': !(isNavBarCollapsed | async)}">
<div [ngClass]="{'open': !(isNavBarCollapsed | async)}" id="header-navbar-wrapper">
<ds-themed-header></ds-themed-header>
<ds-themed-navbar></ds-themed-navbar>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:host {
position: relative;
z-index: var(--ds-nav-z-index);
div#header-navbar-wrapper {
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid;
}
}
3 changes: 2 additions & 1 deletion src/app/navbar/navbar.component.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
nav.navbar {
background-color: var(--ds-navbar-bg);
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid;
align-items: baseline;
}

Expand All @@ -12,9 +11,11 @@ nav.navbar {
position: absolute;
overflow: hidden;
height: 0;
z-index: var(--ds-nav-z-index);
&.open {
height: auto;
min-height: 100vh; //doesn't matter because wrapper is sticky
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid; // open navbar covers header-navbar-wrapper border
}
}
}
Expand Down

0 comments on commit c6ade09

Please sign in to comment.