This commit is contained in:
Laurent Destailleur 2021-10-13 02:35:53 +02:00
parent c084bafbe3
commit 4fc93ca7fa
3 changed files with 12 additions and 7 deletions

View File

@ -1519,7 +1519,7 @@ class DolGraph
if (empty($conf->dol_optimize_smallscreen)) { if (empty($conf->dol_optimize_smallscreen)) {
return ($defaultsize ? $defaultsize : '500'); return ($defaultsize ? $defaultsize : '500');
} else { } else {
return (empty($_SESSION['dol_screen_width']) ? '280' : ($_SESSION['dol_screen_width'] - 40)); return (empty($_SESSION['dol_screenwidth']) ? '280' : ($_SESSION['dol_screenwidth'] - 40));
} }
} }
if ($direction == 'height') { if ($direction == 'height') {

View File

@ -223,9 +223,9 @@ if ($result || empty($id)) {
} }
if ($mode == 'bynumber') { if ($mode == 'bynumber') {
print '<a class="a-mesure-disabled" href="'.$_SERVER["PHP_SELF"].'?id='.(GETPOST('id') ?GETPOST('id') : $object->id).($type != '' ? '&type='.$type : '').'&mode=byunit&search_year='.$search_year.'">'; print '<a class="a-mesure-disabled marginleftonly marginrightonly reposition" href="'.$_SERVER["PHP_SELF"].'?id='.(GETPOST('id') ?GETPOST('id') : $object->id).($type != '' ? '&type='.$type : '').'&mode=byunit&search_year='.$search_year.'">';
} else { } else {
print '<span class="a-mesure">'; print '<span class="a-mesure marginleftonly marginrightonly">';
} }
print $langs->trans("StatsByNumberOfUnits"); print $langs->trans("StatsByNumberOfUnits");
if ($mode == 'bynumber') { if ($mode == 'bynumber') {
@ -236,14 +236,12 @@ if ($result || empty($id)) {
if (!empty($conf->dol_use_jmobile)) { if (!empty($conf->dol_use_jmobile)) {
print '</div>'."\n".'<div class="nowrap">'."\n"; print '</div>'."\n".'<div class="nowrap">'."\n";
} else {
print ' &nbsp; ';
} }
if ($mode == 'byunit') { if ($mode == 'byunit') {
print '<a class="a-mesure-disabled" href="'.$_SERVER["PHP_SELF"].'?id='.(GETPOST('id') ?GETPOST('id') : $object->id).($type != '' ? '&type='.$type : '').'&mode=bynumber&search_year='.$search_year.'">'; print '<a class="a-mesure-disabled marginleftonly marginrightonly reposition" href="'.$_SERVER["PHP_SELF"].'?id='.(GETPOST('id') ?GETPOST('id') : $object->id).($type != '' ? '&type='.$type : '').'&mode=bynumber&search_year='.$search_year.'">';
} else { } else {
print '<span class="a-mesure">'; print '<span class="a-mesure marginleftonly marginrightonly">';
} }
print $langs->trans("StatsByNumberOfEntities"); print $langs->trans("StatsByNumberOfEntities");
if ($mode == 'byunit') { if ($mode == 'byunit') {

View File

@ -7102,6 +7102,13 @@ div.clipboardCPValue.hidewithsize {
boerder-right: unset; boerder-right: unset;
padding-left: 5px; padding-left: 5px;
} }
.a-mesure, .a-mesure-disabled {
display: block;
margin-bottom: 6px;
padding-left: 12px;
padding-right: 12px;
}
} }
@media only screen and (max-width: 320px) @media only screen and (max-width: 320px)