fixed bug with charts not showing + better mobile support
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -32,8 +32,8 @@ export default {
|
||||
const toggle = ref('duration')
|
||||
let myChart1, myChart2
|
||||
const color = ['#bb792c', '#9bd270', '#eac42a']
|
||||
const width = ref(600)
|
||||
const height = ref(400)
|
||||
const width = ref(window.innerWidth <= 600 ? window.innerWidth : 600)
|
||||
const height = ref(width.value * 2 / 3)
|
||||
|
||||
const toggleShow = () => {
|
||||
const offBtn = document.getElementById('toggle-off')
|
||||
@@ -165,7 +165,6 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return {toggleShow, toggle}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user