fix weaponchart responsive position
This commit is contained in:
@@ -86,7 +86,7 @@ export default defineComponent({
|
|||||||
// eslint-disable-next-line no-unused-expressions
|
// eslint-disable-next-line no-unused-expressions
|
||||||
this.$props.playerHighlighted
|
this.$props.playerHighlighted
|
||||||
const options = {
|
const options = {
|
||||||
responsive: false,
|
responsive: true,
|
||||||
maintainAspectRatio: true,
|
maintainAspectRatio: true,
|
||||||
animation: { duration: 500 },
|
animation: { duration: 500 },
|
||||||
layout: { autoPadding: false },
|
layout: { autoPadding: false },
|
||||||
@@ -158,8 +158,9 @@ export default defineComponent({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
canvas {
|
.weaponChart {
|
||||||
background: var(--accent);
|
width: calc(min(50vw, 50vh) - 3em);
|
||||||
|
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