From: Alexander Ebert Date: Tue, 23 Jul 2019 09:29:19 +0000 (+0200) Subject: Enforce the maximum height of images when editing signatures X-Git-Tag: 5.2.0_Alpha_3~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3ac253a1337467a08118f36f9e7526e6a919eb8;p=GitHub%2FWoltLab%2FWCF.git Enforce the maximum height of images when editing signatures --- diff --git a/com.woltlab.wcf/templates/signatureEdit.tpl b/com.woltlab.wcf/templates/signatureEdit.tpl index f9bed23984..2049c5bff9 100644 --- a/com.woltlab.wcf/templates/signatureEdit.tpl +++ b/com.woltlab.wcf/templates/signatureEdit.tpl @@ -17,7 +17,7 @@

{lang}wcf.user.signature.current{/lang}

-
{@$signatureCache}
+
{@$signatureCache}
{/if} @@ -27,7 +27,7 @@
-
+
diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 052d4f961c..975554177a 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1824,7 +1824,7 @@ if (COMPILER_TARGET_DEFAULT) { // get preview container var $preview = $('#previewContainer'); if (!$preview.length) { - $preview = $('

' + WCF.Language.get('wcf.global.preview') + '

').insertBefore($('#signatureContainer')).wcfFadeIn(); + $preview = $('

' + WCF.Language.get('wcf.global.preview') + '

').insertBefore($('#signatureContainer')).wcfFadeIn(); } $preview.children('div').first().html(data.returnValues.message); diff --git a/wcfsetup/install/files/style/ui/message.scss b/wcfsetup/install/files/style/ui/message.scss index 90ee43c241..282b8e025f 100644 --- a/wcfsetup/install/files/style/ui/message.scss +++ b/wcfsetup/install/files/style/ui/message.scss @@ -556,14 +556,13 @@ } } -.messageSignature { - > div { - @extend .htmlContent; - } - - img { - max-height: #{$wcf_option_signature_max_image_height}px; - } +.messageSignature > div { + @extend .htmlContent; +} + +.messageSignature img, +.messageSignatureConstraints img { + max-height: #{$wcf_option_signature_max_image_height}px; } @include screen-sm-down {