Fix minor display issues with input quantities

This commit is contained in:
Andrew Miner
2015-04-08 11:34:14 -07:00
parent d67715b814
commit 78cc1bf297
4 changed files with 3 additions and 19 deletions
@@ -36,7 +36,6 @@ module.exports = class SlotController extends BaseController
@$link.attr 'href', display.itemUrl @$link.attr 'href', display.itemUrl
@imageLoader.load display.iconUrl, @$image @imageLoader.load display.iconUrl, @$image
@show @$image
if @model.quantity > 1 if @model.quantity > 1
@$quantity.html @model.quantity @$quantity.html @model.quantity
@@ -46,8 +45,7 @@ module.exports = class SlotController extends BaseController
@$link.removeAttr 'href' @$link.removeAttr 'href'
@$quantity.html '' @$quantity.html ''
@$image.removeAttr 'src' @$image.attr 'src', '/images/empty.png'
@hide @$image
super super
+1 -1
View File
@@ -7,5 +7,5 @@
.view__slot .view__slot
a a
img.hideable.hiding img(src='/images/empty.png')
.quantity .quantity
-14
View File
@@ -14,20 +14,6 @@ All rights reserved.
vertical-align: middle; vertical-align: middle;
} }
td.quantity {
position: relative;
width: 2.4em;
input {
position: absolute; top: 50%; height: $font-size-small; width: 100%;
@include transform(translateY(-50%));
border-radius: 0.75em;
margin: 0 auto;
text-align: center;
max-width: 2.8em;
}
}
td.name { td.name {
text-align: left; text-align: left;
padding-right: 1em; padding-right: 1em;
+1 -1
View File
@@ -14,7 +14,7 @@ All rights reserved.
td.quantity { td.quantity {
position: relative; position: relative;
width: 4em; width: 5em;
input { input {
position: absolute; top: 50%; height: $font-size-small; width: 100%; position: absolute; top: 50%; height: $font-size-small; width: 100%;