This commit is contained in:
Laurent Destailleur 2017-11-26 22:12:11 +01:00
parent e4d0213916
commit b142ac1c06
3 changed files with 16 additions and 4 deletions

View File

@ -147,14 +147,14 @@ class box_factures_fourn extends ModeleBoxes
); );
$this->info_box_contents[$line][] = array( $this->info_box_contents[$line][] = array(
'td' => '', 'td' => 'class="tdoverflowmax50"',
'text' => $objp->ref_supplier, 'text' => $objp->ref_supplier,
'tooltip' => $langs->trans('SupplierInvoice').': '.($objp->ref?$objp->ref:$objp->facid).'<br>'.$langs->trans('RefSupplier').': '.$objp->ref_supplier, 'tooltip' => $langs->trans('SupplierInvoice').': '.($objp->ref?$objp->ref:$objp->facid).'<br>'.$langs->trans('RefSupplier').': '.$objp->ref_supplier,
'url' => DOL_URL_ROOT."/fourn/facture/card.php?facid=".$objp->facid, 'url' => DOL_URL_ROOT."/fourn/facture/card.php?facid=".$objp->facid,
); );
$this->info_box_contents[$line][] = array( $this->info_box_contents[$line][] = array(
'td' => '', 'td' => 'class="tdoverflowmax50"',
'text' => $thirdpartytmp->getNomUrl(1, 'supplier'), 'text' => $thirdpartytmp->getNomUrl(1, 'supplier'),
'asis' => 1, 'asis' => 1,
); );

View File

@ -703,6 +703,12 @@ ul.attendees li {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.tdoverflowmax50 { /* For tdoverflow, the max-midth become a minimum ! */
max-width: 50px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tdoverflowmax100 { /* For tdoverflow, the max-midth become a minimum ! */ .tdoverflowmax100 { /* For tdoverflow, the max-midth become a minimum ! */
max-width: 100px; max-width: 100px;
overflow: hidden; overflow: hidden;

View File

@ -710,7 +710,13 @@ input > ul.attendees {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.tdoverflowmax100 { .tdoverflowmax50 { /* For tdoverflow, the max-midth become a minimum ! */
max-width: 50px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.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;
@ -728,7 +734,7 @@ input > ul.attendees {
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;