Skip to content
Snippets Groups Projects
Commit 914d56bb authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix css for last chrome versions. max-width: 0 fails on box

parent db7f7a42
No related branches found
No related tags found
No related merge requests found
......@@ -128,22 +128,22 @@ class box_services_contracts extends ModeleBoxes
}
}
$this->info_box_contents[$i][] = array('td' => 'class="tdoverflow maxwidth100onsmartphone" align="left"',
$this->info_box_contents[$i][] = array('td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
'text' => $contratlignestatic->getNomUrl(1),
'asis' => 1
);
$this->info_box_contents[$i][] = array('td' => 'align="left"',
$this->info_box_contents[$i][] = array('td' => '',
'text' => $contractstatic->getNomUrl(1),
'asis' => 1
);
$this->info_box_contents[$i][] = array('td' => 'align="left"',
$this->info_box_contents[$i][] = array('td' => '',
'text' => $thirdpartytmp->getNomUrl(1),
'asis' => 1
);
$this->info_box_contents[$i][] = array('td' => 'align="right"',
$this->info_box_contents[$i][] = array('td' => '',
'text' => dol_print_date($datem,'day'));
$this->info_box_contents[$i][] = array('td' => 'align="right" width="18"',
......
......@@ -14,6 +14,7 @@ ServiceStatusNotLateShort=Not expired
ServiceStatusLate=Running, expired
ServiceStatusLateShort=Expired
ServiceStatusClosed=Closed
ShowContractOfService=Show contract of service
Contracts=Contracts
ContractsSubscriptions=Contracts/Subscriptions
ContractsAndLine=Contracts and line of contracts
......
......@@ -561,6 +561,18 @@ div.myavailability {
text-overflow: ellipsis;
white-space: nowrap;
}
.tdoverflowmax100 {
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tdoverflowmax300 {
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tdoverflowauto {
max-width: 0;
overflow: auto;
......@@ -769,8 +781,8 @@ div.ficheaddleft {
<?php if ($conf->browser->layout != 'phone') { print "padding-".$left.": 16px;\n"; }
else print "margin-top: 10px;\n"; ?>
}
/* Force values for small screen */
@media only screen and (max-width: 900px)
/* Force values on one colum for small screen */
@media only screen and (max-width: 960px)
{
div.fiche {
margin-<?php print $left; ?>: <?php print (GETPOST("optioncss") == 'print'?6:($dol_hide_leftmenu?'6':'20')); ?>px;
......
......@@ -560,6 +560,18 @@ div.myavailability {
text-overflow: ellipsis;
white-space: nowrap;
}
.tdoverflowmax100 {
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tdoverflowmax300 {
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tdoverflowauto {
max-width: 0;
overflow: auto;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment