fixed #6
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2021-10-23 02:58:24 +02:00
parent 1d12c35688
commit c699ae2058
4 changed files with 239 additions and 4 deletions

View File

@@ -4,11 +4,27 @@
:class="'team-' + (team_id + 1)">
<caption v-if="store.state.matchDetails.max_rounds === 16"
:class="score === 9 ? 'text-success' : score === 8 ? 'text-warning' : 'text-danger'">
<div v-if="team_id === 1" class="team-2">
<img src="../assets/images/icons/t_logo.svg" alt="T logo">
<img src="../assets/images/icons/ct_logo.svg" alt="CT logo">
</div>
<span v-if="score < 10" class="hidden">0</span>{{ score }}
<div v-if="team_id === 0" class="team-1">
<img src="../assets/images/icons/ct_logo.svg" alt="CT logo">
<img src="../assets/images/icons/t_logo.svg" alt="T logo">
</div>
</caption>
<caption v-if="store.state.matchDetails.max_rounds === 30 || !store.state.matchDetails.max_rounds"
:class="score === 16 ? 'text-success' : score === 15 ? 'text-warning' : 'text-danger'">
<div v-if="team_id === 1" class="team-2">
<img src="../assets/images/icons/t_logo.svg" alt="T logo">
<img src="../assets/images/icons/ct_logo.svg" alt="CT logo">
</div>
<span v-if="score < 10" class="hidden">0</span>{{ score }}
<div v-if="team_id === 0" class="team-1">
<img src="../assets/images/icons/ct_logo.svg" alt="CT logo">
<img src="../assets/images/icons/t_logo.svg" alt="T logo">
</div>
</caption>
<thead v-if="team_id === 0">
<tr>
@@ -31,7 +47,8 @@
</tr>
</thead>
<tbody>
<tr v-for="player in store.state.matchDetails.stats" v-show="player.team_id === team_id + 1" :key="player.player.steamid64"
<tr v-for="player in store.state.matchDetails.stats" v-show="player.team_id === team_id + 1"
:key="player.player.steamid64"
class="player">
<ScoreTeamPlayer v-if="player.team_id === team_id + 1"
:assists="player.assists"
@@ -39,6 +56,8 @@
:color="player.color"
:deaths="player.deaths"
:dmg="player.dmg?.enemy"
:game_ban="player.player.game_ban"
:game_ban_date="player.player.game_ban_date"
:hs="player.headshot"
:kdiff="player.kills - player.deaths"
:kills="player.kills"
@@ -56,8 +75,6 @@
:tracked="player.player.tracked"
:vac="player.player.vac"
:vac_date="player.player.vac_date"
:game_ban="player.player.game_ban"
:game_ban_date="player.player.game_ban_date"
/>
</tr>
<tr v-if="team_id === 0" class="hr"></tr>
@@ -96,6 +113,7 @@ table {
margin-bottom: -80px;
caption {
position: relative;
color: white;
font-size: 3rem;
caption-side: top;
@@ -107,6 +125,38 @@ table {
color: transparent;
user-select: none;
}
.team-1 {
top: 95px;
}
.team-2 {
bottom: 120px;
}
.team-1,
.team-2 {
position: absolute;
left: 7px;
color: white;
font-size: 1rem;
opacity: .8;
img {
position: inherit;
width: 30px;
height: 30px;
&:first-child {
z-index: 1;
}
&:last-child {
margin-left: 20px;
z-index: 0 !important;
}
}
}
}
tr {
@@ -141,6 +191,7 @@ table {
.scoreboard {
margin-left: 65px;
margin-top: -20px;
caption {
margin-left: -60px;
}