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 5ea76b3 commit b69311e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _pages/rankings.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,10 @@ <h1 class="display-6 fw-bold text-center">Influencer Rankings</h1>
if (screen.availWidth < 800) {
const height = 50;
const pieChart = (ratedPercent == 0) ? null : html`<pie-chart size=$height positive=$positivePercent negative=$negativePercent></pie-chart>`;
return html`
<li class="list-group-item" style="padding:6px">
<div style="display:flex;align-items: center;">
<img src=${item.profileUrl} style="width:${height}px;height:${height}px;border-radius:50%;margin-right:10px;">
<img src="${item.profileUrl}" style="width:${height}px;height:${height}px;border-radius:50%;margin-right:10px;">
<div>
<h5 class="card-title">${this.profileTitle(item)}</h5>
${this.profileMeta(item.meta)}
Expand All @@ -199,7 +198,8 @@ <h5 class="card-title">${this.profileTitle(item)}</h5>
${tradeCount} Trade${tradeCount == 1 ? '' : 's'}<br>
${ratedPercent == 0 ? 'Zero Rated' : (ratedPercent == 100 ? 'All Rated' : (100 - ratedPercent) + '% Unrated')}
</div>
${pieChart}
${
<pie-chart size="${height}" positive="${positivePercent}" negative="${negativePercent}"></pie-chart>
</div>
<div style="flex-grow:1;line-height:1.3;" class="card-text text-end">
${item.stocks.map(
Expand All @@ -220,7 +220,7 @@ <h5 class="card-title">${this.profileTitle(item)}</h5>
return html`
<li class="list-group-item" style="display:flex;align-items:center;">
${a}${this.profileTypeImage(item, false)}${a != null ? html`</a>` : null}
<img src="${item.profileUrl}" style="width:${height}px;height:${height}px;border-radius:50%;"/>
<img src="${item.profileUrl}" style="width:${height}px;height:${height}px;border-radius:50%;margin-left:10px;"/>
<div style="flex-grow:1;padding-left:12px;">
<div style="display:flex;">
<div style="text-align:left">
Expand Down

0 comments on commit b69311e

Please sign in to comment.