fix weaponchart responsive position

This commit is contained in:
2023-03-30 12:07:15 +02:00
parent 6ee0fff6bf
commit bbb7dd47bb
+4 -3
View File
@@ -86,7 +86,7 @@ export default defineComponent({
// eslint-disable-next-line no-unused-expressions
this.$props.playerHighlighted
const options = {
responsive: false,
responsive: true,
maintainAspectRatio: true,
animation: { duration: 500 },
layout: { autoPadding: false },
@@ -158,8 +158,9 @@ export default defineComponent({
</script>
<style scoped>
canvas {
background: var(--accent);
.weaponChart {
width: calc(min(50vw, 50vh) - 3em);
height: calc(min(50vw, 50vh) - 3em);
}
@media only screen and (max-width: 922px) {