Merge pull request #2926 from mcwumbly/hide-revision-button

UX: show the hide revision button on mobile
This commit is contained in:
Régis Hanol 2014-10-29 01:02:01 +01:00
commit 3dcccb5dee
2 changed files with 3 additions and 3 deletions

View File

@ -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"),

View File

@ -3,7 +3,7 @@
.modal.history-modal {
#revision-numbers {
display: inline-block;
min-width: 100px;
min-width: 96px;
text-align: center;
}
#revision-loading {