This commit is contained in:
ldestailleur
2025-06-05 16:12:20 +02:00
parent 578316a92d
commit bfba47cd98
2 changed files with 12 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ if (!defined('ISLOADEDBYSTEELSHEET')) {
die('Must be call by steelsheet');
}
include_once DOL_DOCUMENT_ROOT."/core/lib/functions2.lib.php";
/**
* @var string $colorbackhmenu1
* @var string $colorbacklinepair1
@@ -25,7 +26,7 @@ include_once DOL_DOCUMENT_ROOT."/core/lib/functions2.lib.php";
';
$borderradius = getDolGlobalString('THEME_ELDY_USEBORDERONTABLE') ? getDolGlobalInt('THEME_ELDY_BORDER_RADIUS', 6) : 0;
$WIDTHMENUDROPDOWN = 370;
?>
/* IDE Hack <style type="text/css"> */
@@ -48,8 +49,9 @@ button.dropdown-item.global-search-item {
}
#topmenu-bookmark-dropdown .dropdown-menu {
min-width: 370px;
max-width: 400px;
min-width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
max-width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
}
@@ -205,7 +207,7 @@ div#topmenu-global-search-dropdown a::after, div#topmenu-quickadd-dropdown a::af
padding: 0 0 0 0;
margin-top: 2px !important;
border-top-width: 0;
width: 360px;
width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
}
.topnav .user-menu .dropdown-menu {
top: 50px;
@@ -452,7 +454,7 @@ li.liinputsearch {
*/
#topmenu-quickadd-dropdown .dropdown-menu {
width: 310px !important;
width: <?php echo $WIDTHMENUDROPDOWN; ?>px !important;
color: #444;
}

View File

@@ -4,6 +4,7 @@
if (!defined('ISLOADEDBYSTEELSHEET')) {
die('Must be call by steelsheet');
}
include_once DOL_DOCUMENT_ROOT."/core/lib/functions2.lib.php";
// When no photo, we show the login name, so we need an offset to output picto at a fixed position.
$atoploginusername = empty($user->photo) ? 52 : 0;
@@ -28,7 +29,7 @@ $atoploginusername = empty($user->photo) ? 52 : 0;
';
$borderradius = getDolGlobalString('THEME_ELDY_USEBORDERONTABLE') ? getDolGlobalInt('THEME_ELDY_BORDER_RADIUS', 6) : 0;
$WIDTHMENUDROPDOWN = 370;
?>
/* IDE Hack <style type="text/css"> */
@@ -76,8 +77,9 @@ div#topmenu-login-dropdown {
}
#topmenu-global-search-dropdown .dropdown-menu, #topmenu-quickadd-dropdown .dropdown-menu, #topmenu-bookmark-dropdown .dropdown-menu, #topmenu-login-dropdown .dropdown-menu {
min-width: 370px;
max-width: 400px;
min-width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
max-width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
width: <?php echo $WIDTHMENUDROPDOWN; ?>px;
}
button.dropdown-item.global-search-item {