mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: summoner profile icon bug when player was in game
This commit is contained in:
parent
0a47570a31
commit
763ba327ae
1 changed files with 3 additions and 3 deletions
|
|
@ -39,8 +39,8 @@
|
|||
<div :class="{'playing': playing}" class="relative w-24 h-24">
|
||||
<div
|
||||
:class="{'border-2': !playing}"
|
||||
class="relative z-10 w-24 h-24 rounded-full bg-blue-1000 border-teal-400"
|
||||
:style="{background: getSummonerIcon}"
|
||||
class="relative z-10 w-24 h-24 rounded-full bg-blue-1000 bg-center bg-cover border-teal-400"
|
||||
:style="{backgroundImage: getSummonerIcon}"
|
||||
>
|
||||
<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"
|
||||
|
|
@ -130,7 +130,7 @@ export default {
|
|||
|
||||
computed: {
|
||||
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() {
|
||||
return this.$route.params.name
|
||||
|
|
|
|||
Loading…
Reference in a new issue