mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-06-06 01:06:36 +02:00
Ensure template editor scrolls to display buttons
This commit is contained in:
parent
b87f4e7cad
commit
5a728dbd7c
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ export function showTemplateEditor(show = true) {
|
||||||
document.getElementById('templateFields').style.display = show ? '' : 'none';
|
document.getElementById('templateFields').style.display = show ? '' : 'none';
|
||||||
if (show) {
|
if (show) {
|
||||||
document.getElementById('templateTextarea').focus();
|
document.getElementById('templateTextarea').focus();
|
||||||
|
document.querySelector('#settingsModal .modal-content section').scrollTop = 9999;
|
||||||
} else {
|
} else {
|
||||||
clearTemplateEditor();
|
clearTemplateEditor();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue