added func for changed color for ratio-show in crash

This commit is contained in:
Kostya
2024-02-04 23:45:25 +03:00
parent 06c29ec26c
commit 5cdd3025e2
2 changed files with 7 additions and 2 deletions

View File

@@ -152,6 +152,11 @@
transition: .3s ease;
}
.lost-ratio {
color: #EF4444;
font-weight: 700;
}
/* /Crash-Graph */
/* Crash-Players */

View File

@@ -5,7 +5,7 @@
:options="options"
v-else
/>
<h2>{{ crashdata.CurrentX ? crashdata.CurrentX.toFixed(2) : '' }}</h2>
<h2 :class="{ 'lost-ratio' : crashdata.Status === 'GameEnd' }">{{ crashdata.CurrentX ? crashdata.CurrentX.toFixed(2) : '' }}</h2>
</template>
<script>
@@ -72,7 +72,7 @@ export default {
{
label: "Foo",
data: this.dataValues,
borderColor: "#4E5EF2",
borderColor: '#4E5EF2',
pointStyle: "circle",
pointRadius: 0,
pointHoverRadius: 2,