From e48e541dc5b170742c9eb6e8377e782304b8f01b Mon Sep 17 00:00:00 2001 From: Massimiliano Lattanzio Date: Fri, 14 Apr 2023 17:34:03 +0200 Subject: [PATCH] Fix hidden icon when nav menu doesn't fit the page If the navigation menu height is greater than the window height and the menu is minimized, the locale and theme selection icons are not displayed. This commit fixes this issue by modifying the z-index. --- .../stylesheets/spree/backend/components/_navigation.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/app/assets/stylesheets/spree/backend/components/_navigation.scss b/backend/app/assets/stylesheets/spree/backend/components/_navigation.scss index 0525138308d..9637d8936ad 100644 --- a/backend/app/assets/stylesheets/spree/backend/components/_navigation.scss +++ b/backend/app/assets/stylesheets/spree/backend/components/_navigation.scss @@ -333,6 +333,14 @@ nav.menu { bottom: 0; } +body.admin-nav-hidden .admin-nav:not(.fits) { + .admin-locale-selection, .admin-theme-selection { + &::after { + z-index: 0; + } + } +} + .admin-login-nav { list-style: none; padding: 0;