diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php
index 490d033dbf3..5d6bf501d82 100644
--- a/htdocs/core/menus/standard/eldy.lib.php
+++ b/htdocs/core/menus/standard/eldy.lib.php
@@ -480,6 +480,12 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
{
//$mysoc->logo_mini=(empty($conf->global->MAIN_INFO_SOCIETE_LOGO_MINI)?'':$conf->global->MAIN_INFO_SOCIETE_LOGO_MINI);
$mysoc->logo_squarred_mini=(empty($conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI)?'':$conf->global->MAIN_INFO_SOCIETE_LOGO_SQUARRED_MINI);
+
+ $logoContainerAdditionalClass = 'backgroundforcompanylogo';
+ if(!empty($conf->global->MAIN_INFO_SOCIETE_LOGO_NO_BACKGROUND)){
+ $logoContainerAdditionalClass = '';
+ }
+
if (! empty($mysoc->logo_squarred_mini) && is_readable($conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_squarred_mini))
{
$urllogo=DOL_URL_ROOT.'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode('logos/thumbs/'.$mysoc->logo_squarred_mini);
@@ -497,7 +503,8 @@ function print_eldy_menu($db, $atarget, $type_user, &$tabMenu, &$menu, $noout =
print "\n".''."\n";
print_start_menu_entry('companylogo', 'class="tmenu tmenucompanylogo"', 1);
- print '

'."\n";
+
+ print ''."\n";
print_end_menu_entry(4);
}
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index e38b8a66736..ddbea5cd43b 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -1099,19 +1099,21 @@ div.blockvmenulogo
{
border-bottom: 0 !important;
}
-.backgroundforcompanylogo {
+.menulogocontainer {
margin: px;
margin-left: 8px;
margin-right: 8px;
- background-color: rgba(255,255,255,0.7);
padding: 0;
- border-radius: 4px;
height: px;
/* width: 100px; */
max-width: 100px;
vertical-align: middle;
}
-.backgroundforcompanylogo img.mycompany {
+.backgroundforcompanylogo {
+ background-color: rgba(255,255,255,0.7);
+ border-radius: 4px;
+}
+.menulogocontainer img.mycompany {
object-fit: contain;
width: inherit;
height: inherit;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index ba97c329073..3be8d0bda2e 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -2257,19 +2257,21 @@ div.blockvmenulogo
{
border-bottom: 0 !important;
}
-.backgroundforcompanylogo {
+.menulogocontainer {
margin: px;
margin-left: 12px;
margin-right: 6px;
- background-color: rgba(255,255,255,0.7);
padding: 0;
- border-radius: 5px;
height: px;
/* width: 100px; */
max-width: 100px;
vertical-align: middle;
}
-.backgroundforcompanylogo img.mycompany {
+.backgroundforcompanylogo {
+ background-color: rgba(255,255,255,0.7);
+ border-radius: 5px;
+}
+.menulogocontainer img.mycompany {
object-fit: contain;
width: inherit;
height: inherit;