The Angular staff client navbar doesn't collapse when the screen is narrow
but currently the username and password can wrap, pushing the navbar over
the content. This patch doesn't add a collapsing navbar but hiding the user
information does at least stop the navbar from growing.
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: rfrasur <rfrasur@library.in.gov>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
align-items: center;
}
+/* Hide the username@workstation if the screen is too narrow.
+Based on the hidden-sm class selector in Bootstrap. */
+@media (max-width: 991px) {
+ .navbar-user {
+ display: none !important
+ }
+}
<div class="navbar-nav mr-auto"></div>
- <div class="navbar-nav" *ngIf="user()">
+ <div class="navbar-nav navbar-user" *ngIf="user()">
<span i18n>{{user()}} @ {{workstation()}}</span>
</div>
<div class="navbar-nav" *ngIf="locales.length > 1 && currentLocale">