Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
fix: layout changes on futbin price
Browse files Browse the repository at this point in the history
player name got mangled sometimes and last update time of Futbin less prominent
  • Loading branch information
Tim Klingeleers committed Sep 27, 2018
1 parent 620ca2b commit 13faf92
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
14 changes: 12 additions & 2 deletions app/futbin/futbin-prices.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,21 @@ export class FutbinPrices extends BaseScript {
$('.secondary.player-stats-data-component').css('float', 'left');
targetForButton = target.find('.auction');
targetForButton.show();
targetForButton.prepend(`<div class="auctionValue futbin"><span class="label">${futbinText}<span class="futbinupdate">(${futbinData[playerId].prices[platform].updated})</span></span><span class="coins value">${futbinData[playerId].prices[platform].LCPrice}</span></div>`);
targetForButton.prepend(`
<div class="auctionValue futbin">
<span class="label">${futbinText}</span>
<span class="coins value">${futbinData[playerId].prices[platform].LCPrice}</span>
<span class="time" style="color: #acacc4;">${futbinData[playerId].prices[platform].updated}</span>
</div>`);
break;
case 'SearchResults':
targetForButton = target.find('.auctionValue').parent();
targetForButton.prepend(`<div class="auctionValue futbin"><span class="label">${futbinText}<span class="futbinupdate">(${futbinData[playerId].prices[platform].updated})</span></span><span class="coins value">${futbinData[playerId].prices[platform].LCPrice}</span></div>`);
targetForButton.prepend(`
<div class="auctionValue futbin">
<span class="label">${futbinText}</span>
<span class="coins value">${futbinData[playerId].prices[platform].LCPrice}</span>
<span class="time" style="color: #acacc4;">${futbinData[playerId].prices[platform].updated}</span>
</div>`);
break;
default:
// no need to do anything
Expand Down
9 changes: 9 additions & 0 deletions app/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@
max-height: 100%;
}
}
}

.listFUTItem .entityContainer .name.untradeable {
display: block;

&::before {
position: relative;
padding-right: 10px;
}
}

0 comments on commit 13faf92

Please sign in to comment.