mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-25 13:58:56 +01:00
UI: remove obsolete js event
This commit is contained in:
parent
c48e4622e8
commit
0c069e5b3f
12
js/main.js
12
js/main.js
@ -463,18 +463,6 @@ new ResizeObserver(updateCssProperties).observe(document.querySelector("#chat-in
|
|||||||
// Handle changes in window size
|
// Handle changes in window size
|
||||||
window.addEventListener("resize", updateCssProperties);
|
window.addEventListener("resize", updateCssProperties);
|
||||||
|
|
||||||
//------------------------------------------------
|
|
||||||
// Keep track of the display width to position the past
|
|
||||||
// chats dropdown on desktop
|
|
||||||
//------------------------------------------------
|
|
||||||
function updateDocumentWidth() {
|
|
||||||
var updatedWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
||||||
document.documentElement.style.setProperty("--document-width", updatedWidth + "px");
|
|
||||||
}
|
|
||||||
|
|
||||||
updateDocumentWidth();
|
|
||||||
window.addEventListener("resize", updateDocumentWidth);
|
|
||||||
|
|
||||||
//------------------------------------------------
|
//------------------------------------------------
|
||||||
// Focus on the rename text area when it becomes visible
|
// Focus on the rename text area when it becomes visible
|
||||||
//------------------------------------------------
|
//------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user