From db80ba9fe4f6283622b8fd19c944ae9ffe92c614 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Sat, 21 Dec 2024 15:26:35 +0100 Subject: [PATCH] Mobile tierlists :) (sort of) --- frontend/components/tierlist/Tier.vue | 16 ++++++++++++++- frontend/pages/tierlist/[lane].vue | 28 ++++++++++++++++++++++----- 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/frontend/components/tierlist/Tier.vue b/frontend/components/tierlist/Tier.vue index 0520ae2..964ecad 100644 --- a/frontend/components/tierlist/Tier.vue +++ b/frontend/components/tierlist/Tier.vue @@ -34,7 +34,7 @@ defineProps<{ margin-bottom: 10px; } .tierlist-tier-title { - font-size: 54px; + font-size: 3.3rem; margin-left: 20px; margin-right: 20px; margin-top: 40px; @@ -56,4 +56,18 @@ defineProps<{ user-select: none; } +@media only screen and (max-width: 450px) { + .champion-img-container { + width: 80px; + height: 80px; + } + .champion-img { + width: 76px; + height: 76px; + } + .tierlist-tier-container { + grid-template-columns: repeat(auto-fit, 80px); + min-height: 82px; + } +} \ No newline at end of file diff --git a/frontend/pages/tierlist/[lane].vue b/frontend/pages/tierlist/[lane].vue index cf9816f..ec0bd06 100644 --- a/frontend/pages/tierlist/[lane].vue +++ b/frontend/pages/tierlist/[lane].vue @@ -64,24 +64,42 @@ tiers.push({title: "F", data: tierFromScaledPickrate(0, 0.1)})
-
+
-

Tierlist for

+

Tierlist for

-

{{ POSITIONS_STR[lanePositionToIndex(lane)] }}

+

{{ POSITIONS_STR[lanePositionToIndex(lane)] }}

- +
- \ No newline at end of file