Move "Show controls" to the right

This commit is contained in:
oobabooga 2023-09-13 10:02:25 -07:00
parent 1b47b5c676
commit 9fc46d3c19
2 changed files with 14 additions and 1 deletions

View file

@ -226,6 +226,17 @@ for (let i = 14; i >= 2; i--) {
}
}
//------------------------------------------------
// Relocate the "Show controls" checkbox
//------------------------------------------------
var elementToMove = document.getElementById('show-controls');
var parent = elementToMove.parentNode;
for (var i = 0; i < 2; i++) {
parent = parent.parentNode;
}
parent.insertBefore(elementToMove, parent.firstChild);
//------------------------------------------------
// Focus on the chat input
//------------------------------------------------