1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

fix import in FF; fix table styles in FF

This commit is contained in:
lana-k
2020-11-16 16:20:13 +01:00
parent 3d059ecf0c
commit e1969bf553
3 changed files with 20 additions and 10 deletions

View File

@@ -83,7 +83,7 @@ export default {
this.tableWidth = this.$refs['table-container'].offsetWidth
this.$nextTick(() => {
this.header = this.$refs.th.map(th => {
return { name: th.innerText, width: th.offsetWidth }
return { name: th.innerText, width: th.getBoundingClientRect().width }
})
})
},