From 78cc1bf2971052b9e631cb3cd5bea20d34f0ce18 Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Wed, 8 Apr 2015 11:34:14 -0700 Subject: [PATCH] Fix minor display issues with input quantities --- src/coffee/controllers/slot_controller.coffee | 4 +--- src/jade/templates/slot.jade | 2 +- src/scss/templates/inventory_table.scss | 14 -------------- src/scss/templates/stack.scss | 2 +- 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/coffee/controllers/slot_controller.coffee b/src/coffee/controllers/slot_controller.coffee index 69a47c83c..d0b7754ef 100644 --- a/src/coffee/controllers/slot_controller.coffee +++ b/src/coffee/controllers/slot_controller.coffee @@ -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 diff --git a/src/jade/templates/slot.jade b/src/jade/templates/slot.jade index 7c7596862..709f54ad1 100644 --- a/src/jade/templates/slot.jade +++ b/src/jade/templates/slot.jade @@ -7,5 +7,5 @@ .view__slot a - img.hideable.hiding + img(src='/images/empty.png') .quantity diff --git a/src/scss/templates/inventory_table.scss b/src/scss/templates/inventory_table.scss index d702d72f8..04bc3462f 100644 --- a/src/scss/templates/inventory_table.scss +++ b/src/scss/templates/inventory_table.scss @@ -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; diff --git a/src/scss/templates/stack.scss b/src/scss/templates/stack.scss index 348ba2ab6..c608259a4 100644 --- a/src/scss/templates/stack.scss +++ b/src/scss/templates/stack.scss @@ -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%;