From 48f7c3df2ca3ea44eb8b600356059719b8c6ae6f Mon Sep 17 00:00:00 2001 From: steskelt Date: Tue, 19 Mar 2024 13:02:10 -0400 Subject: [PATCH] mobile viewport --- _pages/rankings.html | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/_pages/rankings.html b/_pages/rankings.html index 3c64d7f..dda7197 100644 --- a/_pages/rankings.html +++ b/_pages/rankings.html @@ -124,10 +124,11 @@

Influencer Rankings

this.dispatchEvent(event); } - profileTypeImage(influencer){ - if (influencer.meta.type == "twitter" || influencer.meta.type == "x") return html``; - if (influencer.meta.type == "youtube") return html``; - if (influencer.meta.type == "web" || influencer.meta.type == "url") return html``; + profileTypeImage(influencer, isMini) { + const style = isMini ? 'style="width:30px;margin-left:10px;"' : ''; + if (influencer.meta.type == "twitter" || influencer.meta.type == "x") return html``; + if (influencer.meta.type == "youtube") return html``; + if (influencer.meta.type == "web" || influencer.meta.type == "url") return html``; return html``; } @@ -185,17 +186,15 @@

Influencer Rankings

return html`
  • - -
    + +
    ${this.profileTitle(item)}
    -
    - ${this.profileMeta(item.meta)} -
    + ${this.profileMeta(item.meta)}
    -
    - ${a}${this.profileTypeImage(item)}${a != null ? html`` : null} -
    +
    + ${a}${this.profileTypeImage(item, true)}${a != null ? html`` : null} +
    ${tradeCount} Trade${tradeCount == 1 ? '' : 's'}
    ${ratedPercent == 0 ? 'Zero Rated' : (ratedPercent == 100 ? 'All Rated' : (100 - ratedPercent) + '% Unrated')}
    @@ -219,7 +218,7 @@
    ${this.profileTitle(item)}
    const height = this.height ?? 64; return html`
  • - ${a}${this.profileTypeImage(item)}${a != null ? html`` : null} + ${a}${this.profileTypeImage(item, false)}${a != null ? html`` : null}