From de8047f8a45739fd662a023e402a77d2134dc64c Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 25 Mar 2015 16:39:35 +0100 Subject: [PATCH] Fixed buttons margins in contentNavigation elements --- wcfsetup/install/files/js/WCF.Message.js | 20 ++++++++++++++++++-- wcfsetup/install/files/style/button.less | 4 ++-- 2 files changed, 20 insertions(+), 4 deletions(-) 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 { -- 2.20.1