From eac77940911d1b71b756c30ae4830bedde67d934 Mon Sep 17 00:00:00 2001 From: Layne Date: Tue, 6 Jul 2021 22:39:28 -0400 Subject: [PATCH] bills busted fixes :tm: --- .../views/badge/InventoryBadgeView.scss | 2 +- .../views/trade/InventoryTradeView.tsx | 64 ++++++++++--------- 2 files changed, 34 insertions(+), 32 deletions(-) diff --git a/src/views/inventory/views/badge/InventoryBadgeView.scss b/src/views/inventory/views/badge/InventoryBadgeView.scss index 7285ce2f..fc975ace 100644 --- a/src/views/inventory/views/badge/InventoryBadgeView.scss +++ b/src/views/inventory/views/badge/InventoryBadgeView.scss @@ -7,7 +7,7 @@ } .inventory-badge-overflow { - height: calc(100% - 86px); + height: calc(100% - 91px); } @import './item/InventoryBadgeItemView'; diff --git a/src/views/inventory/views/trade/InventoryTradeView.tsx b/src/views/inventory/views/trade/InventoryTradeView.tsx index 212ca779..b95716ab 100644 --- a/src/views/inventory/views/trade/InventoryTradeView.tsx +++ b/src/views/inventory/views/trade/InventoryTradeView.tsx @@ -163,41 +163,43 @@ export const InventoryTradeView: FC = props => }) } -
-
{ LocalizeText('inventory.trading.you') }
- - { Array.from(Array(MAX_ITEMS_TO_TRADE), (e, i) => - { - const item = (tradeData.ownUser.items.getWithIndex(i) || null); +
+
+
{ LocalizeText('inventory.trading.you') }
+ + { Array.from(Array(MAX_ITEMS_TO_TRADE), (e, i) => + { + const item = (tradeData.ownUser.items.getWithIndex(i) || null); - if(!item) return ; + if(!item) return ; - return ( - setSelectedGroupItem(item) }> - { (item === selectedGroupItem) && - } - - ); - }) } - -
-
-
{ tradeData.otherUser.userName }
- - { Array.from(Array(MAX_ITEMS_TO_TRADE), (e, i) => - { - const item = (tradeData.otherUser.items.getWithIndex(i) || null); + return ( + setSelectedGroupItem(item) }> + { (item === selectedGroupItem) && + } + + ); + }) } + +
+
+
{ tradeData.otherUser.userName }
+ + { Array.from(Array(MAX_ITEMS_TO_TRADE), (e, i) => + { + const item = (tradeData.otherUser.items.getWithIndex(i) || null); - if(!item) return ; + if(!item) return ; - return setSelectedGroupItem(item) } />; - }) } - -
-
- plz + return setSelectedGroupItem(item) } />; + }) } + +
+
+ plz +
);