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
|
@$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
|
||||||
|
|
||||||
|
|||||||
@@ -7,5 +7,5 @@
|
|||||||
|
|
||||||
.view__slot
|
.view__slot
|
||||||
a
|
a
|
||||||
img.hideable.hiding
|
img(src='/images/empty.png')
|
||||||
.quantity
|
.quantity
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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%;
|
||||||
|
|||||||
Reference in New Issue
Block a user