Skip to content

Commit 7b42446

Browse files
authored
Merge pull request DSpace#1861 from the-library-code/PRs/FixedHeader768px
Workaround missing navbar @768px for dspace and custom templates
2 parents 6972a38 + fc624a4 commit 7b42446

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/app/navbar/navbar.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ nav.navbar {
44
}
55

66
/** Mobile menu styling **/
7-
@media screen and (max-width: map-get($grid-breakpoints, md)) {
7+
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
88
.navbar {
99
width: 100vw;
1010
background-color: var(--bs-white);
@@ -26,7 +26,7 @@ nav.navbar {
2626

2727
/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */
2828
.navbar-expand-md.navbar-container {
29-
@media screen and (max-width: map-get($grid-breakpoints, md)) {
29+
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
3030
> .container {
3131
padding: 0 var(--bs-spacer);
3232
}

src/themes/dspace/app/navbar/navbar.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ nav.navbar {
66
}
77

88
/** Mobile menu styling **/
9-
@media screen and (max-width: map-get($grid-breakpoints, md)) {
9+
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
1010
.navbar {
1111
width: 100%;
1212
background-color: var(--bs-white);
@@ -28,7 +28,7 @@ nav.navbar {
2828

2929
/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */
3030
.navbar-expand-md.navbar-container {
31-
@media screen and (max-width: map-get($grid-breakpoints, md)) {
31+
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
3232
> .container {
3333
padding: 0 var(--bs-spacer);
3434
a.navbar-brand {

0 commit comments

Comments
 (0)