mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-27 04:23:21 +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
|
// Run the initializer when the page loads
|
||||||
initializeSidebars();
|
initializeSidebars();
|
||||||
|
|
||||||
// Add an event listener to handle screen resizing
|
|
||||||
window.addEventListener("resize", initializeSidebars);
|
|
||||||
|
|
||||||
// Add click event listeners to toggle buttons
|
// Add click event listeners to toggle buttons
|
||||||
pastChatsToggle.addEventListener("click", () => {
|
pastChatsToggle.addEventListener("click", () => {
|
||||||
toggleSidebar(pastChatsRow, pastChatsToggle);
|
toggleSidebar(pastChatsRow, pastChatsToggle);
|
||||||
|
Loading…
Reference in New Issue
Block a user