@mintplayer/ng-bootstrap 15.13.0 → 15.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/navbar/src/navbar-nav/navbar-nav.component.mjs +8 -5
- package/fesm2015/mintplayer-ng-bootstrap-navbar.mjs +7 -4
- package/fesm2015/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap-navbar.mjs +7 -4
- package/fesm2020/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -136,15 +136,18 @@ class BsNavbarNavComponent {
|
|
|
136
136
|
this.isResizing$ = new BehaviorSubject(false);
|
|
137
137
|
this.destroyed$ = new Subject();
|
|
138
138
|
this.bsNavbar = bsNavbar;
|
|
139
|
-
this.showNavs$ = combineLatest([this.bsNavbar.isExpanded$, this.windowWidth$])
|
|
140
|
-
.pipe(filter(([isExpanded, windowWidth]) => {
|
|
139
|
+
this.showNavs$ = combineLatest([this.bsNavbar.isExpanded$, this.bsNavbar.expandAt$, this.windowWidth$])
|
|
140
|
+
.pipe(filter(([isExpanded, expandAt, windowWidth]) => {
|
|
141
141
|
return windowWidth !== null;
|
|
142
142
|
}))
|
|
143
|
-
.pipe(map(([isExpanded, windowWidth]) => {
|
|
143
|
+
.pipe(map(([isExpanded, expandAt, windowWidth]) => {
|
|
144
144
|
if (windowWidth === null) {
|
|
145
145
|
throw 'windowWidth should not be null here';
|
|
146
146
|
}
|
|
147
|
-
else if (
|
|
147
|
+
else if (expandAt === null) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
else if (windowWidth >= expandAt) {
|
|
148
151
|
return true;
|
|
149
152
|
}
|
|
150
153
|
else if (isExpanded) {
|