Skip to content

Commit

Permalink
mobile viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
steskelt committed Mar 19, 2024
1 parent c49b063 commit 6e937f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pages/rankings.html
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ <h5 class="card-title">${this.profileTitle(item)}</h5>
}

renderStocks() {
const toolbarItemCount = Math.min(Math.floor((screen.availWidth - 50) / 85) - 1, maxToolbarItems);
const toolbarItemCount = Math.min(Math.floor((screen.availWidth - 50) / 85) - 1, StockToolbar.maxToolbarItems);
const staticitems = this.stocks.slice(0, toolbarItemCount);
const selectedDropDown = (this.selectedStockItem == null || staticitems.findIndex(o => o.symbol == this.selectedStockItem.symbol) > -1)? null : this.selectedStockItem;
return html`
Expand Down

0 comments on commit 6e937f0

Please sign in to comment.