From 827a13a08b502dc421a423a8e34127daa4acce14 Mon Sep 17 00:00:00 2001 From: David McClure Date: Tue, 28 Oct 2014 07:56:24 -0700 Subject: [PATCH] UX: show the hide revision button on mobile --- app/assets/javascripts/discourse/controllers/history.js.es6 | 4 ++-- app/assets/stylesheets/common/base/history.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/history.js.es6 b/app/assets/javascripts/discourse/controllers/history.js.es6 index a6f6204be6d..344a1fccf8c 100644 --- a/app/assets/javascripts/discourse/controllers/history.js.es6 +++ b/app/assets/javascripts/discourse/controllers/history.js.es6 @@ -53,8 +53,8 @@ export default ObjectController.extend(ModalFunctionality, { displayGoToNext: function() { return this.get("next_revision") && this.get("current_revision") < this.get("next_revision"); }.property("current_revision", "next_revision"), displayGoToLast: function() { return this.get("current_revision") < this.get("last_revision"); }.property("current_revision", "last_revision"), - displayShow: function() { return !Discourse.Mobile.mobileView && this.get("previous_hidden") && Discourse.User.currentProp('staff'); }.property("previous_hidden"), - displayHide: function() { return !Discourse.Mobile.mobileView && !this.get("previous_hidden") && Discourse.User.currentProp('staff'); }.property("previous_hidden"), + displayShow: function() { return this.get("previous_hidden") && Discourse.User.currentProp('staff') && !this.get("loading"); }.property("previous_hidden", "loading"), + displayHide: function() { return !this.get("previous_hidden") && Discourse.User.currentProp('staff') && !this.get("loading"); }.property("previous_hidden", "loading"), isEitherRevisionHidden: Em.computed.or("previous_hidden", "current_hidden"), diff --git a/app/assets/stylesheets/common/base/history.scss b/app/assets/stylesheets/common/base/history.scss index cace79e7c30..a00c076cc0a 100644 --- a/app/assets/stylesheets/common/base/history.scss +++ b/app/assets/stylesheets/common/base/history.scss @@ -3,7 +3,7 @@ .modal.history-modal { #revision-numbers { display: inline-block; - min-width: 100px; + min-width: 96px; text-align: center; } #revision-loading {