mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
UI: fix instruct style background for multiline inputs
This commit is contained in:
parent
904867a139
commit
36c29084bb
@ -390,7 +390,12 @@ function updateCssProperties() {
|
|||||||
if (chatContainer.clientHeight > 0) {
|
if (chatContainer.clientHeight > 0) {
|
||||||
|
|
||||||
// Calculate new chat height and adjust CSS properties
|
// Calculate new chat height and adjust CSS properties
|
||||||
const newChatHeight = `${chatContainer.clientHeight - chatInputHeight + 40}px`;
|
var numericHeight = chatContainer.parentNode.clientHeight - chatInputHeight + 40 - 100;
|
||||||
|
if (document.getElementById("chat-tab").style.paddingBottom != "") {
|
||||||
|
numericHeight += 20;
|
||||||
|
}
|
||||||
|
const newChatHeight = `${numericHeight}px`;
|
||||||
|
|
||||||
document.documentElement.style.setProperty("--chat-height", newChatHeight);
|
document.documentElement.style.setProperty("--chat-height", newChatHeight);
|
||||||
document.documentElement.style.setProperty("--input-delta", `${chatInputHeight - 40}px`);
|
document.documentElement.style.setProperty("--input-delta", `${chatInputHeight - 40}px`);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user