From ac370dd89f63cfb06ee74db793b0412e56b7222e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Tue, 30 Nov 2021 14:03:58 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20d=C3=A9bordement=20image=20del=20abnni?= =?UTF-8?q?=C3=A8re=20perso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 3 ++- core/module/theme/view/header/header.js.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index 898e4463..2a114038 100644 --- a/core/core.php +++ b/core/core.php @@ -2321,7 +2321,8 @@ class core extends common { // Bannière au contenu personnalisé if ($this->getData(['theme','header','feature']) === 'feature' ) { // Hauteur de la taille du contenu perso - $css .= 'header #featureContent{height:' . $this->getData(['theme', 'header', 'height']) . ';}'; + $css .= 'header {height:'. $this->getData(['theme', 'header', 'height']) . '; min-height:' . $this->getData(['theme', 'header', 'height']) . ';overflow: hidden;}'; + //$css .= '.bannerDisplay img { width: auto;max-height:' . $this->getData(['theme', 'header', 'height']) . ';}'; } diff --git a/core/module/theme/view/header/header.js.php b/core/module/theme/view/header/header.js.php index 16d05c8c..aae3b366 100644 --- a/core/module/theme/view/header/header.js.php +++ b/core/module/theme/view/header/header.js.php @@ -27,7 +27,7 @@ $("input, select").on("change", function() { // Contenu perso if ($("#themeHeaderFeature").val() == "feature") { - css = "header{height:" + $("#themeHeaderHeight").val() + "; overflow:hidden; background-position:top; background-repeat: no-repeat; line-height:1.15; background-color:unset; background-image:unset; text-align:unset;}"; + css = "header{min-height: " + $("#themeHeaderHeight").val() + ";height:" + $("#themeHeaderHeight").val() + "; overflow:hidden; background-position:top; background-repeat: no-repeat; line-height:1.15; background-color:unset; background-image:unset; text-align:unset;}"; $("#featureContent").appendTo("header").show(); $("#themeHeaderTitle").hide();