Fixed buttons margins in contentNavigation elements
authorMarcel Werk <burntime@woltlab.com>
Wed, 25 Mar 2015 15:39:35 +0000 (16:39 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 25 Mar 2015 15:39:35 +0000 (16:39 +0100)
wcfsetup/install/files/js/WCF.Message.js
wcfsetup/install/files/style/button.less

index 8f3f16c71364dabf3cc72bd8886eeb1bda82abd6..b3e7381f2c4305782c55b1119674bd1b49240956 100644 (file)
@@ -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();
+                       }
+               });
        },
        
        /**
index dd0b3a3152d488ad5d8b42d0e016177ff6f2c7ad..ee3900221778fb55b37b957b1c755e2f50825485 100644 (file)
@@ -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 {