Merge pull request #128 from qqii/fix-126-zoom-line-number-spacing

Fix #126: : Line number spacing not updating on zoom
This commit is contained in:
Koen Lageveen 2023-01-08 10:12:34 +01:00 committed by GitHub
commit 7403944213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -81,12 +81,14 @@ function setSize() {
document.querySelector('.CodeMirror').style.fontSize = `${size}px`;
document.cookie = `size=${size};max-age=172800`;
editor.refresh();
}
function setSpacing() {
var spacing = document.getElementById('spacing').value;
document.querySelector('.CodeMirror').style.lineHeight = spacing;
document.cookie = `spacing=${spacing};max-age=172800`;
editor.refresh();
}
function selectLanguage() {
var lang = document.getElementById('select-language').value;