Don't use large inventory on mobile crafting page

fixes #219
This commit is contained in:
Andrew Miner
2016-05-04 21:50:48 -07:00
parent 51f566ebf1
commit 0718590f56
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -117,3 +117,13 @@
} }
} }
} }
@include screen-size(mobile) {
.view__stack.editable {
.quantity {
input {
width : 1.5em;
}
}
}
}
@@ -107,6 +107,9 @@ module.exports = class CraftPageController extends PageController
@$toolsSection = @$('section.tools') @$toolsSection = @$('section.tools')
@$workingSection = @$('.view__craftsman_working') @$workingSection = @$('.view__craftsman_working')
if c.screen.type.compute() is c.screen.type.mobile
@$('.view__inventory.large').removeClass 'large'
super super
onWillRender: -> onWillRender: ->
@@ -122,6 +125,7 @@ module.exports = class CraftPageController extends PageController
@_refreshOutdated() @_refreshOutdated()
@_refreshSectionVisibility() @_refreshSectionVisibility()
@_refreshSteps() @_refreshSteps()
super super
# Backbone.View Overrides ######################################################################## # Backbone.View Overrides ########################################################################