mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Move "Show controls" to the right
This commit is contained in:
parent
1b47b5c676
commit
9fc46d3c19
@ -404,7 +404,9 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
|
||||
#show-controls {
|
||||
position: absolute;
|
||||
background-color: transparent;
|
||||
left: calc(100% - 180px);
|
||||
left: calc(100% - 175px);
|
||||
border: 0px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
#typing-container {
|
||||
|
11
js/main.js
11
js/main.js
@ -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
|
||||
//------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user