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

@ -404,7 +404,9 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
#show-controls { #show-controls {
position: absolute; position: absolute;
background-color: transparent; background-color: transparent;
left: calc(100% - 180px); left: calc(100% - 175px);
border: 0px;
z-index: 1000;
} }
#typing-container { #typing-container {

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 // Focus on the chat input
//------------------------------------------------ //------------------------------------------------