mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
feat: better highlight of searched summoner name in matches
This commit is contained in:
parent
46d2903340
commit
5bf24d540a
2 changed files with 5 additions and 5 deletions
|
|
@ -115,16 +115,16 @@
|
||||||
class="flex items-center ml-4 leading-none"
|
class="flex items-center ml-4 leading-none"
|
||||||
>
|
>
|
||||||
<router-link
|
<router-link
|
||||||
v-if="ally.account_id !== '0'"
|
v-if="ally.account_id !== '0' && account.accountId !== ally.account_id"
|
||||||
@click.native="$event.stopImmediatePropagation()"
|
@click.native="$event.stopImmediatePropagation()"
|
||||||
:to="{ name: 'summoner', params: { region: $route.params.region, name: ally.name }}"
|
:to="{ name: 'summoner', params: { region: $route.params.region, name: ally.name }}"
|
||||||
:class="isSummonerProfile(ally.account_id)"
|
:class="isSummonerProfile(ally.account_id)"
|
||||||
class="w-16 overflow-hidden text-xs font-medium text-right text-blue-200 whitespace-no-wrap hover:text-white text-overflow"
|
class="w-16 overflow-hidden text-xs font-medium text-right whitespace-no-wrap hover:text-white text-overflow"
|
||||||
>{{ ally.name }}</router-link>
|
>{{ ally.name }}</router-link>
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
:class="isSummonerProfile(ally.account_id)"
|
:class="isSummonerProfile(ally.account_id)"
|
||||||
class="w-16 overflow-hidden text-xs font-medium text-right text-blue-200 whitespace-no-wrap text-overflow"
|
class="w-16 overflow-hidden text-xs font-medium text-right whitespace-no-wrap text-overflow"
|
||||||
>{{ ally.name }}</div>
|
>{{ ally.name }}</div>
|
||||||
<div
|
<div
|
||||||
:class="index !== 0 ? '-mt-1': ''"
|
:class="index !== 0 ? '-mt-1': ''"
|
||||||
|
|
@ -229,7 +229,8 @@ export default {
|
||||||
},
|
},
|
||||||
isSummonerProfile(account_id) {
|
isSummonerProfile(account_id) {
|
||||||
return {
|
return {
|
||||||
'font-bold': this.account.accountId === account_id
|
'font-bold text-white': this.account.accountId === account_id,
|
||||||
|
'text-blue-200': this.account.accountId !== account_id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
...mapActions('detailedMatch', ['matchDetails']),
|
...mapActions('detailedMatch', ['matchDetails']),
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,6 @@ class MatchTransformer {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name,
|
name,
|
||||||
accountId: identity.player.currentAccountId,
|
|
||||||
summonerId: identity.player.summonerId,
|
summonerId: identity.player.summonerId,
|
||||||
champion,
|
champion,
|
||||||
role,
|
role,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue