From: Jason Boyer Date: Wed, 2 Mar 2022 11:54:29 +0000 (-0500) Subject: Hide username and password in eg2 when screen is narrow X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6cd0aea29906e4e12d52c0aa3f3c86368b350a2d;p=working%2FEvergreen.git Hide username and password in eg2 when screen is narrow 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 Signed-off-by: rfrasur Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.css b/Open-ILS/src/eg2/src/app/staff/nav.component.css index cb779b02ba..2df005a88a 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.css +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.css @@ -69,3 +69,10 @@ 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 + } +} diff --git a/Open-ILS/src/eg2/src/app/staff/nav.component.html b/Open-ILS/src/eg2/src/app/staff/nav.component.html index 76f4e71067..6440486430 100644 --- a/Open-ILS/src/eg2/src/app/staff/nav.component.html +++ b/Open-ILS/src/eg2/src/app/staff/nav.component.html @@ -405,7 +405,7 @@ -