From 12cc116f0dbb5542eb821fc299a221e5c76c6385 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Mon, 2 Dec 2019 18:28:57 +0100 Subject: [PATCH] feat: add loading animation when fetching ranks in match details --- client/src/components/DotsLoader.vue | 62 +++++++++++++++++++ .../components/Match/DetailedMatchTeam.vue | 21 ++++--- client/tailwind.config.js | 1 + 3 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 client/src/components/DotsLoader.vue diff --git a/client/src/components/DotsLoader.vue b/client/src/components/DotsLoader.vue new file mode 100644 index 0000000..dfa1fb9 --- /dev/null +++ b/client/src/components/DotsLoader.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/client/src/components/Match/DetailedMatchTeam.vue b/client/src/components/Match/DetailedMatchTeam.vue index 9defd57..f1a3da3 100644 --- a/client/src/components/Match/DetailedMatchTeam.vue +++ b/client/src/components/Match/DetailedMatchTeam.vue @@ -66,11 +66,11 @@
@@ -89,21 +89,24 @@ v-if="player.firstSum" :to="{ name: 'summoner', params: { region: $route.params.region, name: player.name }}" :class="{'font-semibold text-yellow-400': compareSummonernames($route.params.name, player.name)}" - class="w-24 text-sm text-white text-left overflow-hidden text-overflow whitespace-no-wrap hover:text-blue-200" + class="w-22 text-xs text-white text-left overflow-hidden text-overflow whitespace-no-wrap hover:text-blue-200" >{{ player.name }}
{{ player.name }}
-
{{ player.champion.name }}
+
{{ player.champion.name }}
-
+
- + -
{{ player.rank.shortName }}
+
{{ player.rank.shortName }}
+
+
+
-
@@ -160,10 +163,12 @@