Fix responsive

This commit is contained in:
Laurent Destailleur 2021-12-16 23:53:05 +01:00
parent fdf7749a54
commit 3895438b85
4 changed files with 30 additions and 12 deletions

View File

@ -2347,7 +2347,7 @@ class Form
$out .= img_picto($langs->trans("Search"), 'search'); $out .= img_picto($langs->trans("Search"), 'search');
} }
} }
$out .= '<input type="text" class="minwidth100" name="search_'.$htmlname.'" id="search_'.$htmlname.'" value="'.$selected_input_value.'"'.$placeholder.' '.(!empty($conf->global->PRODUCT_SEARCH_AUTOFOCUS) ? 'autofocus' : '').' />'; $out .= '<input type="text" class="minwidth100'.($morecss ? ' '.$morecss : '').'" name="search_'.$htmlname.'" id="search_'.$htmlname.'" value="'.$selected_input_value.'"'.$placeholder.' '.(!empty($conf->global->PRODUCT_SEARCH_AUTOFOCUS) ? 'autofocus' : '').' />';
if ($hidelabel == 3) { if ($hidelabel == 3) {
$out .= img_picto($langs->trans("Search"), 'search'); $out .= img_picto($langs->trans("Search"), 'search');
} }

View File

@ -192,20 +192,20 @@ if ($result || !($id > 0)) {
// Type // Type
print '<tr><td class="titlefield">'.$langs->trans("Type").'</td><td>'; print '<tr><td class="titlefield">'.$langs->trans("Type").'</td><td>';
$array = array('-1'=>'&nbsp;', '0'=>$langs->trans('Product'), '1'=>$langs->trans('Service')); $array = array('-1'=>'&nbsp;', '0'=>$langs->trans('Product'), '1'=>$langs->trans('Service'));
print $form->selectarray('type', $array, $type); print $form->selectarray('type', $array, $type, 0, 0, 0, '', 0, 0, 0, '', 'minwidth100');
print '</td></tr>'; print '</td></tr>';
// Product // Product
print '<tr><td class="titlefield">'.$langs->trans("ProductOrService").'</td><td>'; print '<tr><td class="titlefield">'.$langs->trans("ProductOrService").'</td><td>';
print img_picto('', 'product', 'class="pictofixedwidth"'); print img_picto('', 'product', 'class="pictofixedwidth"');
print $form->select_produits($id, 'id', '', 0, 0, 1, 2, '', 0, array(), 0, '1', 0, 'maxwidth500'); print $form->select_produits($id, 'id', '', 0, 0, 1, 2, '', ($conf->dol_optimize_smallscreen ? 1 : 0), array(), 0, '1', 0, 'widthcentpercentminusx maxwidth400');
print '</td></tr>'; print '</td></tr>';
// Tag // Tag
if ($conf->categorie->enabled) { if ($conf->categorie->enabled) {
print '<tr><td class="titlefield">'.$langs->trans("Categories").'</td><td>'; print '<tr><td class="titlefield">'.$langs->trans("Categories").'</td><td>';
$moreforfilter .= img_picto($langs->trans("Categories"), 'category', 'class="pictofixedwidth"'); $moreforfilter .= img_picto($langs->trans("Categories"), 'category', 'class="pictofixedwidth"');
$moreforfilter .= $htmlother->select_categories(Categorie::TYPE_PRODUCT, $search_categ, 'search_categ', 1, 1, 'widthcentpercentminusx maxwidth300'); $moreforfilter .= $htmlother->select_categories(Categorie::TYPE_PRODUCT, $search_categ, 'search_categ', 1, 1, 'widthcentpercentminusx maxwidth400');
print $moreforfilter; print $moreforfilter;
print '</td></tr>'; print '</td></tr>';
} }
@ -465,7 +465,9 @@ if ($result || !($id > 0)) {
$linktoregenerate .= img_picto($langs->trans("ReCalculate").' ('.$dategenerated.')', 'refresh'); $linktoregenerate .= img_picto($langs->trans("ReCalculate").' ('.$dategenerated.')', 'refresh');
$linktoregenerate .= '</a>'; $linktoregenerate .= '</a>';
// Show graph // Show graph
print '<div class="div-table-responsive-no-min">';
print '<table class="noborder centpercent">'; print '<table class="noborder centpercent">';
// Label // Label
print '<tr class="liste_titre"><td>'; print '<tr class="liste_titre"><td>';
@ -478,6 +480,7 @@ if ($result || !($id > 0)) {
print $graphfiles[$key]['output']; print $graphfiles[$key]['output'];
print '</td></tr>'; print '</td></tr>';
print '</table>'; print '</table>';
print '</div>';
if ($i % 2 == 0) { if ($i % 2 == 0) {
print "\n".'</div>'."\n"; print "\n".'</div>'."\n";

View File

@ -7249,6 +7249,10 @@ div.clipboardCPValue.hidewithsize {
padding-left: 12px; padding-left: 12px;
padding-right: 12px; padding-right: 12px;
} }
.a-mesure, .a-mesure-disabled {
text-align: center;
}
} }
@media only screen and (max-width: 320px) @media only screen and (max-width: 320px)

View File

@ -7070,6 +7070,17 @@ div.clipboardCPValue.hidewithsize {
boerder-right: unset; boerder-right: unset;
padding-left: 5px; padding-left: 5px;
} }
.a-mesure, .a-mesure-disabled {
display: block;
margin-bottom: 6px;
padding-left: 12px;
padding-right: 12px;
}
.a-mesure, .a-mesure-disabled {
text-align: center;
}
} }