mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-26 12:22:08 +01:00
UI: fix sidebars closing when typing on mobile
This commit is contained in:
parent
0c069e5b3f
commit
636a6621cc
@ -740,9 +740,6 @@ function initializeSidebars() {
|
||||
// Run the initializer when the page loads
|
||||
initializeSidebars();
|
||||
|
||||
// Add an event listener to handle screen resizing
|
||||
window.addEventListener("resize", initializeSidebars);
|
||||
|
||||
// Add click event listeners to toggle buttons
|
||||
pastChatsToggle.addEventListener("click", () => {
|
||||
toggleSidebar(pastChatsRow, pastChatsToggle);
|
||||
|
Loading…
Reference in New Issue
Block a user