Fix Must use tdoverflowmax100 instead of tdoverflow

This commit is contained in:
Laurent Destailleur 2017-03-10 10:55:35 +01:00
parent 8389db18bf
commit 567639397e
3 changed files with 11 additions and 9 deletions

View File

@ -83,6 +83,8 @@ class box_services_expired extends ModeleBoxes
$i = 0; $i = 0;
$thirdpartytmp = new Societe($this->db);
while ($i < $num) while ($i < $num)
{ {
$late=''; $late='';
@ -100,13 +102,13 @@ class box_services_expired extends ModeleBoxes
'text' => ($objp->ref?$objp->ref:$objp->rowid), // Some contracts have no ref 'text' => ($objp->ref?$objp->ref:$objp->rowid), // Some contracts have no ref
'url' => DOL_URL_ROOT."/contrat/card.php?id=".$objp->rowid); 'url' => DOL_URL_ROOT."/contrat/card.php?id=".$objp->rowid);
$this->info_box_contents[$i][2] = array('td' => 'align="left" width="16"', $thirdpartytmp->id = $objp->socid;
'logo' => 'company', $thirdpartytmp->name = $objp->name;
'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid);
$this->info_box_contents[$i][3] = array('td' => 'class="tdoverflow maxwidth100onsmartphone" align="left"', $this->info_box_contents[$i][2] = array('td' => 'class="tdoverflowmax100 maxwidth100onsmartphone" align="left"',
'text' => $objp->name, 'text' => $thirdpartytmp->getNomUrl(1, 'customer'),
'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid); 'asis' => 1
);
$this->info_box_contents[$i][4] = array('td' => 'align="center"', $this->info_box_contents[$i][4] = array('td' => 'align="center"',
'text' => dol_print_date($dateline,'day'), 'text' => dol_print_date($dateline,'day'),

View File

@ -243,7 +243,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty"
$out.= '>'; $out.= '>';
if ($conf->use_javascript_ajax) if ($conf->use_javascript_ajax)
{ {
$out.= '<table summary="" class="nobordernopadding" width="100%"><tr><td class="tdoverflow maxwidth300onsmartphone">'; $out.= '<table summary="" class="nobordernopadding" width="100%"><tr><td class="tdoverflowmax100 maxwidth100onsmartphone">';
} }
if (! empty($head['text'])) if (! empty($head['text']))
{ {

View File

@ -577,13 +577,13 @@ div.myavailability {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.tdoverflowmax100 { .tdoverflowmax100 { /* For tdoverflow, the max-midth become a minimum ! */
max-width: 100px; max-width: 100px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.tdoverflowmax300 { .tdoverflowmax300 { /* For tdoverflow, the max-midth become a minimum ! */
max-width: 300px; max-width: 300px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;