diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 7d3cfac1c41..6f73d504d11 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -1226,11 +1226,13 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
if ($ret < 0) $error++;
}
+ $heightforphotref=70;
+ if (! empty($conf->dol_optimize_smallscreen)) $heightforphotref=60;
// Si fichier png PDF d'1 page trouve
if (file_exists($fileimage))
{
$phototoshow = '
';
- $phototoshow.= '
.')
';
+ $phototoshow.= '
.')
';
$phototoshow.= '
';
}
// 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";
$phototoshow = '';
- $phototoshow.= '
.')
';
+ $phototoshow.= '.')
';
$phototoshow.= '
';
}
}
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 777121e2acb..4fd7120a771 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -857,6 +857,7 @@ div.fiche>form>div.div-table-responsive {
div.divphotoref {
padding-right: 5px;
+ padding-bottom: 5px;
}
img.photoref, div.photoref {
border: none;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index e1a286d5d7a..dc61977cf5f 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -858,6 +858,7 @@ div.fiche>form>div.div-table-responsive {
div.divphotoref {
padding-right: 5px;
+ padding-bottom: 5px;
}
img.photoref, div.photoref {
border: none;