fix: summoner profile icon bug when player was in game

This commit is contained in:
Valentin Kaelin 2019-11-23 18:50:44 +01:00
parent 0a47570a31
commit 763ba327ae

View file

@ -39,8 +39,8 @@
<div :class="{'playing': playing}" class="relative w-24 h-24"> <div :class="{'playing': playing}" class="relative w-24 h-24">
<div <div
:class="{'border-2': !playing}" :class="{'border-2': !playing}"
class="relative z-10 w-24 h-24 rounded-full bg-blue-1000 border-teal-400" class="relative z-10 w-24 h-24 rounded-full bg-blue-1000 bg-center bg-cover border-teal-400"
:style="{background: getSummonerIcon}" :style="{backgroundImage: getSummonerIcon}"
> >
<div <div
class="absolute left-0 bottom-0 w-8 h-8 flex items-center justify-center bg-blue-900 rounded-full text-xs text-teal-500 font-extrabold border-2 border-teal-400" class="absolute left-0 bottom-0 w-8 h-8 flex items-center justify-center bg-blue-900 rounded-full text-xs text-teal-500 font-extrabold border-2 border-teal-400"
@ -130,7 +130,7 @@ export default {
computed: { computed: {
getSummonerIcon() { getSummonerIcon() {
return `url(https://ddragon.leagueoflegends.com/cdn/${this.version}/img/profileicon/${this.summonerInfos.account.profileIconId}.png) center/cover` return `url(https://ddragon.leagueoflegends.com/cdn/${this.version}/img/profileicon/${this.summonerInfos.account.profileIconId}.png)`
}, },
summoner() { summoner() {
return this.$route.params.name return this.$route.params.name