Bug 21814: (follow-up) System preferences save button can be hidden by language menu
authorOwen Leonard <oleonard@myacpl.org>
Thu, 15 Nov 2018 17:20:52 +0000 (17:20 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 16 Nov 2018 12:32:24 +0000 (12:32 +0000)
This follow-up implements the same change by defining a variable to be
used as the minimum height of the language footer navbar. A calculation
is done on this value to set the bottom margin of the main area of the
page.

To test, apply the patch and rebuild the staff client CSS. Clear your
browser cache if necessary. View the system preferences page again and
confirm that the bug is still fixed.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss

index 31710ec..99e43a9 100644 (file)
@@ -2,6 +2,7 @@
 
 $font-main: Arial, Verdana, Helvetica, sans-serif;
 $font-monospace: "Courier New", Courier, monospace;
+$language-footer-min-height: 20px;
 
 @mixin default-button {
     background: linear-gradient(to bottom, #FFFFFF 0%, #F7F7F7 35%, #E0E0E0 100%);
@@ -582,8 +583,8 @@ label,
 }
 
 .main {
+    margin-bottom: $language-footer-min-height * 1.5;
     margin-top: 1em;
-    margin-bottom: 3em;
 }
 
 #login_controls {
@@ -3311,6 +3312,8 @@ button,
 }
 
 #changelanguage {
+    min-height: $language-footer-min-height;
+
     .dropdown-menu {
         > li {
             > a,