Fix minor display issues with input quantities
This commit is contained in:
@@ -36,7 +36,6 @@ module.exports = class SlotController extends BaseController
|
||||
@$link.attr 'href', display.itemUrl
|
||||
|
||||
@imageLoader.load display.iconUrl, @$image
|
||||
@show @$image
|
||||
|
||||
if @model.quantity > 1
|
||||
@$quantity.html @model.quantity
|
||||
@@ -46,8 +45,7 @@ module.exports = class SlotController extends BaseController
|
||||
@$link.removeAttr 'href'
|
||||
@$quantity.html ''
|
||||
|
||||
@$image.removeAttr 'src'
|
||||
@hide @$image
|
||||
@$image.attr 'src', '/images/empty.png'
|
||||
|
||||
super
|
||||
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
|
||||
.view__slot
|
||||
a
|
||||
img.hideable.hiding
|
||||
img(src='/images/empty.png')
|
||||
.quantity
|
||||
|
||||
@@ -14,20 +14,6 @@ All rights reserved.
|
||||
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 {
|
||||
text-align: left;
|
||||
padding-right: 1em;
|
||||
|
||||
@@ -14,7 +14,7 @@ All rights reserved.
|
||||
|
||||
td.quantity {
|
||||
position: relative;
|
||||
width: 4em;
|
||||
width: 5em;
|
||||
|
||||
input {
|
||||
position: absolute; top: 50%; height: $font-size-small; width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user