From fbdbad0d7c7f48a37ef2aeec8638945d715ec515 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 29 Aug 2016 18:04:21 +0200 Subject: [PATCH] More space on dropdown --- htdocs/main.inc.php | 2 +- htdocs/theme/eldy/style.css.php | 1 + htdocs/theme/md/style.css.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 906e44fce72..095817015c1 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1940,7 +1940,7 @@ if (! function_exists("llxFooter")) //console.log($(this).parent().parent().find(\'dd ul\')); $(this).parent().parent().find(\'dd ul\').slideToggle(\'fast\'); // Note: Did not find a way to get exact height (value is update at exit) so i calculate a generic from nb of lines - heigthofcontent = 19 * $(this).parent().parent().find(\'dd div ul li\').length; + heigthofcontent = 21 * $(this).parent().parent().find(\'dd div ul li\').length; if (heigthofcontent > 300) heigthofcontent = 300; // limited by max-height on css .dropdown dd ul posbottom = $(this).parent().parent().find(\'dd\').offset().top + heigthofcontent + 8; //console.log(posbottom); diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index cad2c53e4b8..eba8130a3ef 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -4088,6 +4088,7 @@ dl.dropdown { .dropdown dd ul li { white-space: nowrap; font-weight: normal; + padding: 2px; } .dropdown dd ul li input[type="checkbox"] { margin-right: 3px; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index c77a131e7a7..d4eaacbdc48 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -3988,6 +3988,7 @@ dl.dropdown { .dropdown dd ul li { white-space: nowrap; font-weight: normal; + padding: 2px; } .dropdown dd ul li input[type="checkbox"] { margin-right: 3px;