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; transition: .3s ease;
} }
.lost-ratio {
color: #EF4444;
font-weight: 700;
}
/* /Crash-Graph */ /* /Crash-Graph */
/* Crash-Players */ /* Crash-Players */

View File

@@ -5,7 +5,7 @@
:options="options" :options="options"
v-else 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> </template>
<script> <script>
@@ -72,7 +72,7 @@ export default {
{ {
label: "Foo", label: "Foo",
data: this.dataValues, data: this.dataValues,
borderColor: "#4E5EF2", borderColor: '#4E5EF2',
pointStyle: "circle", pointStyle: "circle",
pointRadius: 0, pointRadius: 0,
pointHoverRadius: 2, pointHoverRadius: 2,