From 9f11ba1f52d3aa3b88cb14ed9f81f742cd37e257 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Fri, 6 Dec 2024 22:17:12 +0100 Subject: [PATCH] Better mobile scroll --- frontend/components/rune/Selector.vue | 24 ++++++++++++++---------- frontend/pages/champion/[alias].vue | 5 +++-- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/frontend/components/rune/Selector.vue b/frontend/components/rune/Selector.vue index 402e109..cadcaf4 100644 --- a/frontend/components/rune/Selector.vue +++ b/frontend/components/rune/Selector.vue @@ -62,14 +62,16 @@ function runeSelect(index: number) { :secondaryStyleId="runes[currentlySelectedPage].secondaryStyle" :selectionIds="runes[currentlySelectedPage].selections" />
-
-
- - - +
+
+
+ + + +

{{ (runes[i].pickrate * 100).toFixed(2) }}% pick.

@@ -100,7 +102,8 @@ function runeSelect(index: number) { } .rs-pickrate { text-align: center; - margin-top: 10px; + margin-top: -40px; + padding-bottom: 40px; } @media only screen and (max-width: 650px) { .rune-selector-entry { @@ -114,7 +117,8 @@ function runeSelect(index: number) { margin-top: 17px; } .rs-pickrate { - margin-top: 20px; + margin-top: 5px; + padding-bottom: 0px; } .rs-style-img { width: 24px; diff --git a/frontend/pages/champion/[alias].vue b/frontend/pages/champion/[alias].vue index 9433a07..9f33529 100644 --- a/frontend/pages/champion/[alias].vue +++ b/frontend/pages/champion/[alias].vue @@ -60,7 +60,7 @@ function updateState(newState : string, newLane : number) { \ No newline at end of file