mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Remove extra space in --chat-buttons
This commit is contained in:
parent
2ad6ca8874
commit
52c4fb75ff
@ -216,6 +216,8 @@ for(i = 0; i < textareaElements.length; i++) {
|
||||
//------------------------------------------------
|
||||
// Improve the looks of the chat input field
|
||||
//------------------------------------------------
|
||||
let isOld = document.querySelectorAll('.old-ui').length > 0;
|
||||
|
||||
document.getElementById('chat-input').parentNode.style.background = 'transparent';
|
||||
document.getElementById('chat-input').parentNode.style.border = 'none';
|
||||
document.getElementById('chat-input').parentElement.parentElement.style.minWidth = 0;
|
||||
@ -224,7 +226,7 @@ document.getElementById('stop').parentElement.parentElement.style.minWidth = 0;
|
||||
document.getElementById('stop').parentElement.parentElement.style.display = 'flex';
|
||||
document.getElementById('stop').parentElement.parentElement.style.flexDirection = 'column-reverse';
|
||||
document.getElementById('stop').parentElement.parentElement.style.paddingBottom = '3px';
|
||||
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = '20px';
|
||||
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = isOld ? '0px' : '20px';
|
||||
|
||||
document.getElementById('stop').parentElement.parentElement.style.flex = '0 0 auto';
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
const belowChatInput = document.querySelectorAll("#chat-tab > div > :nth-child(n+2), #extensions");
|
||||
const chatParent = document.querySelector(".chat-parent");
|
||||
let isOld = document.querySelectorAll('.old-ui').length > 0;
|
||||
|
||||
function toggle_controls(value) {
|
||||
if (value) {
|
||||
@ -8,7 +9,7 @@ function toggle_controls(value) {
|
||||
});
|
||||
|
||||
chatParent.classList.remove("bigchat");
|
||||
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = '20px';
|
||||
document.getElementById('stop').parentElement.parentElement.parentElement.style.paddingBottom = isOld ? '0px' : '20px';
|
||||
document.getElementById('show-controls').parentNode.parentNode.style.paddingBottom = '115px';
|
||||
} else {
|
||||
belowChatInput.forEach(element => {
|
||||
|
Loading…
Reference in New Issue
Block a user