Fix Must use tdoverflowmax100 instead of tdoverflow
This commit is contained in:
parent
8389db18bf
commit
567639397e
@ -83,6 +83,8 @@ class box_services_expired extends ModeleBoxes
|
||||
|
||||
$i = 0;
|
||||
|
||||
$thirdpartytmp = new Societe($this->db);
|
||||
|
||||
while ($i < $num)
|
||||
{
|
||||
$late='';
|
||||
@ -100,13 +102,13 @@ class box_services_expired extends ModeleBoxes
|
||||
'text' => ($objp->ref?$objp->ref:$objp->rowid), // Some contracts have no ref
|
||||
'url' => DOL_URL_ROOT."/contrat/card.php?id=".$objp->rowid);
|
||||
|
||||
$this->info_box_contents[$i][2] = array('td' => 'align="left" width="16"',
|
||||
'logo' => 'company',
|
||||
'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid);
|
||||
$thirdpartytmp->id = $objp->socid;
|
||||
$thirdpartytmp->name = $objp->name;
|
||||
|
||||
$this->info_box_contents[$i][3] = array('td' => 'class="tdoverflow maxwidth100onsmartphone" align="left"',
|
||||
'text' => $objp->name,
|
||||
'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid);
|
||||
$this->info_box_contents[$i][2] = array('td' => 'class="tdoverflowmax100 maxwidth100onsmartphone" align="left"',
|
||||
'text' => $thirdpartytmp->getNomUrl(1, 'customer'),
|
||||
'asis' => 1
|
||||
);
|
||||
|
||||
$this->info_box_contents[$i][4] = array('td' => 'align="center"',
|
||||
'text' => dol_print_date($dateline,'day'),
|
||||
|
||||
@ -243,7 +243,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty"
|
||||
$out.= '>';
|
||||
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']))
|
||||
{
|
||||
|
||||
@ -577,13 +577,13 @@ div.myavailability {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tdoverflowmax100 {
|
||||
.tdoverflowmax100 { /* For tdoverflow, the max-midth become a minimum ! */
|
||||
max-width: 100px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tdoverflowmax300 {
|
||||
.tdoverflowmax300 { /* For tdoverflow, the max-midth become a minimum ! */
|
||||
max-width: 300px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user