fix chart width
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="gamemodeChart" ref="container">
|
<div class="chart" ref="container">
|
||||||
<LoadingBar v-if="progress !== 1" :value="progress"></LoadingBar>
|
<LoadingBar v-if="progress !== 1" :value="progress"></LoadingBar>
|
||||||
<Doughnut :data="chart" :options="chartOptions" v-if="progress === 1" />
|
<Doughnut :data="chart" :options="chartOptions" v-if="progress === 1" />
|
||||||
</div>
|
</div>
|
||||||
@@ -173,9 +173,8 @@ export default defineComponent({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.weaponChart {
|
.chart {
|
||||||
width: calc(min(50vw, 50vh) - 3em);
|
width: 100%;
|
||||||
height: calc(min(50vw, 50vh) - 3em);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 922px) {
|
@media only screen and (max-width: 922px) {
|
||||||
|
|||||||
@@ -174,8 +174,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.weaponChart {
|
.weaponChart {
|
||||||
width: calc(min(50vw, 50vh) - 3em);
|
width: 100%;
|
||||||
height: calc(min(50vw, 50vh) - 3em);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 922px) {
|
@media only screen and (max-width: 922px) {
|
||||||
|
|||||||
Reference in New Issue
Block a user