Fix responsive

This commit is contained in:
Laurent Destailleur 2017-03-21 17:06:27 +01:00
parent 4457bc33cd
commit 1e63b98731
5 changed files with 26 additions and 13 deletions

View File

@ -106,13 +106,13 @@ class box_produits extends ModeleBoxes
$productstatic->entity = $objp->entity; $productstatic->entity = $objp->entity;
$this->info_box_contents[$line][] = array( $this->info_box_contents[$line][] = array(
'td' => 'align="left"', 'td' => '',
'text' => $productstatic->getNomUrl(1), 'text' => $productstatic->getNomUrl(1),
'asis' => 1, 'asis' => 1,
); );
$this->info_box_contents[$line][] = array( $this->info_box_contents[$line][] = array(
'td' => 'align="left"', 'td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
'text' => $objp->label, 'text' => $objp->label,
); );
@ -144,7 +144,7 @@ class box_produits extends ModeleBoxes
); );
$this->info_box_contents[$line][] = array( $this->info_box_contents[$line][] = array(
'td' => 'align="left" class="nowrap"', 'td' => 'class="nowrap"',
'text' => $price_base_type, 'text' => $price_base_type,
); );
@ -174,14 +174,14 @@ class box_produits extends ModeleBoxes
$db->free($result); $db->free($result);
} else { } else {
$this->info_box_contents[0][0] = array( $this->info_box_contents[0][0] = array(
'td' => 'align="left"', 'td' => '',
'maxlength'=>500, 'maxlength'=>500,
'text' => ($db->error().' sql='.$sql), 'text' => ($db->error().' sql='.$sql),
); );
} }
} else { } else {
$this->info_box_contents[0][0] = array( $this->info_box_contents[0][0] = array(
'td' => 'align="left"', 'td' => '',
'text' => $langs->trans("ReadPermissionNotAllowed"), 'text' => $langs->trans("ReadPermissionNotAllowed"),
); );
} }

View File

@ -113,13 +113,13 @@ class box_produits_alerte_stock extends ModeleBoxes
$productstatic->entity = $objp->entity; $productstatic->entity = $objp->entity;
$this->info_box_contents[$line][] = array( $this->info_box_contents[$line][] = array(
'td' => 'align="left"', 'td' => '',
'text' => $productstatic->getNomUrl(1), 'text' => $productstatic->getNomUrl(1),
'asis' => 1, 'asis' => 1,
); );
$this->info_box_contents[$line][] = array( $this->info_box_contents[$line][] = array(
'td' => 'align="left"', 'td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
'text' => $objp->label, 'text' => $objp->label,
); );
@ -153,7 +153,7 @@ class box_produits_alerte_stock extends ModeleBoxes
); );
$this->info_box_contents[$line][] = array( $this->info_box_contents[$line][] = array(
'td' => 'align="left" class="nowrap"', 'td' => 'class="nowrap"',
'text' => $price_base_type, 'text' => $price_base_type,
); );
@ -180,7 +180,7 @@ class box_produits_alerte_stock extends ModeleBoxes
else else
{ {
$this->info_box_contents[0][0] = array( $this->info_box_contents[0][0] = array(
'td' => 'align="left"', 'td' => '',
'maxlength'=>500, 'maxlength'=>500,
'text' => ($db->error().' sql='.$sql), 'text' => ($db->error().' sql='.$sql),
); );
@ -188,7 +188,7 @@ class box_produits_alerte_stock extends ModeleBoxes
} }
else { else {
$this->info_box_contents[0][0] = array( $this->info_box_contents[0][0] = array(
'td' => 'align="left"', 'td' => '',
'text' => $langs->trans("ReadPermissionNotAllowed"), 'text' => $langs->trans("ReadPermissionNotAllowed"),
); );
} }

View File

@ -135,7 +135,7 @@ class box_services_contracts extends ModeleBoxes
'asis' => 1 'asis' => 1
); );
$this->info_box_contents[$i][] = array('td' => '', $this->info_box_contents[$i][] = array('td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
'text' => $thirdpartytmp->getNomUrl(1), 'text' => $thirdpartytmp->getNomUrl(1),
'asis' => 1 'asis' => 1
); );

View File

@ -2973,8 +2973,15 @@ div.tabBar .noborder {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 110px; width: 115px;
} }
@media only screen and (max-width: 767px)
{
.boxstats {
width: 100px;
}
}
.boxstats:hover { .boxstats:hover {
box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.20); box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.20);
} }

View File

@ -2854,7 +2854,13 @@ div .tdtop {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 110px; width: 115px;
}
@media only screen and (max-width: 767px)
{
.boxstats {
width: 100px;
}
} }
.boxstats:hover { .boxstats:hover {
box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.20); box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.20);