Fix responsive

This commit is contained in:
Laurent Destailleur 2017-06-10 00:45:18 +02:00
parent 6ec038d005
commit 87c8659e72
3 changed files with 6 additions and 2 deletions

View File

@ -1226,11 +1226,13 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
if ($ret < 0) $error++; if ($ret < 0) $error++;
} }
$heightforphotref=70;
if (! empty($conf->dol_optimize_smallscreen)) $heightforphotref=60;
// Si fichier png PDF d'1 page trouve // Si fichier png PDF d'1 page trouve
if (file_exists($fileimage)) if (file_exists($fileimage))
{ {
$phototoshow = '<div class="floatleft inline-block valignmiddle divphotoref"><div class="photoref">'; $phototoshow = '<div class="floatleft inline-block valignmiddle divphotoref"><div class="photoref">';
$phototoshow.= '<img height="70" class="photo photowithmargin photowithborder" src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercu'.$modulepart.'&amp;file='.urlencode($relativepathimage).'">'; $phototoshow.= '<img height="'.$heightforphotref.'" class="photo photowithmargin photowithborder" src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercu'.$modulepart.'&amp;file='.urlencode($relativepathimage).'">';
$phototoshow.= '</div></div>'; $phototoshow.= '</div></div>';
} }
// Si fichier png PDF de plus d'1 page trouve // Si fichier png PDF de plus d'1 page trouve
@ -1238,7 +1240,7 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
{ {
$preview = preg_replace('/\.png/','',$relativepathimage) . "-0.png"; $preview = preg_replace('/\.png/','',$relativepathimage) . "-0.png";
$phototoshow = '<div class="floatleft inline-block valignmiddle divphotoref"><div class="photoref">'; $phototoshow = '<div class="floatleft inline-block valignmiddle divphotoref"><div class="photoref">';
$phototoshow.= '<img height="70" class="photo photowithmargin photowithborder" src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercu'.$modulepart.'&amp;file='.urlencode($preview).'"><p>'; $phototoshow.= '<img height="'.$heightforphotref.'" class="photo photowithmargin photowithborder" src="'.DOL_URL_ROOT . '/viewimage.php?modulepart=apercu'.$modulepart.'&amp;file='.urlencode($preview).'"><p>';
$phototoshow.= '</div></div>'; $phototoshow.= '</div></div>';
} }
} }

View File

@ -857,6 +857,7 @@ div.fiche>form>div.div-table-responsive {
div.divphotoref { div.divphotoref {
padding-right: 5px; padding-right: 5px;
padding-bottom: 5px;
} }
img.photoref, div.photoref { img.photoref, div.photoref {
border: none; border: none;

View File

@ -858,6 +858,7 @@ div.fiche>form>div.div-table-responsive {
div.divphotoref { div.divphotoref {
padding-right: 5px; padding-right: 5px;
padding-bottom: 5px;
} }
img.photoref, div.photoref { img.photoref, div.photoref {
border: none; border: none;