Fix screen size fall

This commit is contained in:
John BOTELLA 2018-11-07 11:25:13 +01:00
parent 52aa860008
commit abb6b41f91
2 changed files with 21 additions and 4 deletions

View File

@ -407,7 +407,7 @@ if ($socid > 0)
if($isCustomer) { if($isCustomer) {
if($isSupplier) { if($isSupplier) {
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<div class="fichehalfleft">'; print '<div class="fichehalfleft fichehalfleft-lg">';
print load_fiche_titre($langs->trans("CustomerDiscounts"), '', ''); print load_fiche_titre($langs->trans("CustomerDiscounts"), '', '');
} }
@ -540,7 +540,7 @@ if ($socid > 0)
if($isSupplier) { if($isSupplier) {
if($isCustomer) { if($isCustomer) {
print '</div>'; // class="fichehalfleft" print '</div>'; // class="fichehalfleft"
print '<div class="fichehalfright">'; print '<div class="fichehalfright fichehalfright-lg">';
print '<div class="ficheaddleft">'; print '<div class="ficheaddleft">';
print load_fiche_titre($langs->trans("SupplierDiscounts"), '', ''); print load_fiche_titre($langs->trans("SupplierDiscounts"), '', '');
} }
@ -691,7 +691,7 @@ if ($socid > 0)
if($isCustomer) { if($isCustomer) {
if($isSupplier) { if($isSupplier) {
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<div class="fichehalfleft">'; print '<div class="fichehalfleft fichehalfleft-lg">';
print load_fiche_titre($langs->trans("CustomerDiscounts"), '', ''); print load_fiche_titre($langs->trans("CustomerDiscounts"), '', '');
} }
@ -842,7 +842,7 @@ if ($socid > 0)
if($isSupplier) { if($isSupplier) {
if($isCustomer) { if($isCustomer) {
print '</div>'; // class="fichehalfleft" print '</div>'; // class="fichehalfleft"
print '<div class="fichehalfright">'; print '<div class="fichehalfright fichehalfright-lg">';
print '<div class="ficheaddleft">'; print '<div class="ficheaddleft">';
print load_fiche_titre($langs->trans("SupplierDiscounts"), '', ''); print load_fiche_titre($langs->trans("SupplierDiscounts"), '', '');
} }

View File

@ -1357,6 +1357,23 @@ div.secondcolumn div.box {
} }
} }
/* Force values on one colum for small screen */
@media only screen and (max-width: 1599px)
{
div.fichehalfleft-lg {
float: none;
width: auto;
}
div.fichehalfright-lg {
float: none;
width: auto;
}
.fichehalfright-lg .ficheaddleft{
padding-left:0;
}
}
/* For table into table into card */ /* For table into table into card */
div.ficheaddleft tr.liste_titre:first-child td table.nobordernopadding td { div.ficheaddleft tr.liste_titre:first-child td table.nobordernopadding td {
padding: 0 0 0 0; padding: 0 0 0 0;