editor: use css variable --grid-width at startup (allow overriding) and after disabling & enabling the grid
This commit is contained in:
parent
1c5876246b
commit
db165faa9f
4 changed files with 9 additions and 4 deletions
|
|
@ -11,7 +11,9 @@ window.PACKAGE = require('../../package.json')
|
|||
window.LOADING = null
|
||||
|
||||
window.READ_ONLY = window.READ_ONLY || false
|
||||
window.GRIDWIDTH = 10
|
||||
window.GRIDWIDTH_CSS = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--grid-width'))
|
||||
window.GRIDWIDTH = GRIDWIDTH_CSS
|
||||
|
||||
|
||||
|
||||
window.ELECTRON_NOGPU = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue