mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
added func for changed color for ratio-show in crash
This commit is contained in:
@@ -152,6 +152,11 @@
|
||||
transition: .3s ease;
|
||||
}
|
||||
|
||||
.lost-ratio {
|
||||
color: #EF4444;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* /Crash-Graph */
|
||||
|
||||
/* Crash-Players */
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user