From: Marcel Werk Date: Wed, 25 Mar 2015 15:39:35 +0000 (+0100) Subject: Fixed buttons margins in contentNavigation elements X-Git-Tag: 2.1.2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de8047f8a45739fd662a023e402a77d2134dc64c;p=GitHub%2FWoltLab%2FWCF.git Fixed buttons margins in contentNavigation elements --- diff --git a/wcfsetup/install/files/js/WCF.Message.js b/wcfsetup/install/files/js/WCF.Message.js index 8f3f16c713..b3e7381f2c 100644 --- a/wcfsetup/install/files/js/WCF.Message.js +++ b/wcfsetup/install/files/js/WCF.Message.js @@ -852,7 +852,15 @@ WCF.Message.QuickReply = Class.extend({ this._container.toggle(); if (this._container.is(':visible')) { - this._quickReplyButtons.hide(); + this._quickReplyButtons.each(function() { + var $button = $(this); + if ($button.parent()[0].tagName === 'LI') { + $button.parent().hide(); + } + else { + $button.hide(); + } + }); setTimeout((function() { $(document).trigger('resize'); @@ -1050,7 +1058,15 @@ WCF.Message.QuickReply = Class.extend({ // display form submit $messageBody.next().show(); - this._quickReplyButtons.show(); + this._quickReplyButtons.each(function() { + var $button = $(this); + if ($button.parent()[0].tagName === 'LI') { + $button.parent().show(); + } + else { + $button.show(); + } + }); }, /** diff --git a/wcfsetup/install/files/style/button.less b/wcfsetup/install/files/style/button.less index dd0b3a3152..ee39002217 100644 --- a/wcfsetup/install/files/style/button.less +++ b/wcfsetup/install/files/style/button.less @@ -135,8 +135,8 @@ button.small, font-size: 1rem; margin-bottom: @wcfGapSmall; - &:not(:last-child) { - margin-right: 8px; + &:not(:first-child) { + margin-left: 8px; } .button {