mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
Fix for chat sidebars toggle buttons disappearing (#7106)
This commit is contained in:
parent
8df1127ce2
commit
959d4ddb91
|
|
@ -27,9 +27,7 @@ document.querySelector(".header_bar").addEventListener("click", function(event)
|
|||
this.style.marginBottom = chatVisible ? "0px" : "19px";
|
||||
|
||||
if (chatVisible && !showControlsChecked) {
|
||||
document.querySelectorAll(
|
||||
"#chat-tab > div > :nth-child(1), #chat-tab > div > :nth-child(3), #chat-tab > div > :nth-child(4), #extensions"
|
||||
).forEach(element => {
|
||||
document.querySelectorAll("#extensions").forEach(element => {
|
||||
element.style.display = "none";
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ def create_ui():
|
|||
shared.gradio['history'] = gr.State({'internal': [], 'visible': [], 'metadata': {}})
|
||||
shared.gradio['display'] = gr.JSON(value={}, visible=False) # Hidden buffer
|
||||
|
||||
with gr.Tab('Chat', id='Chat', elem_id='chat-tab'):
|
||||
with gr.Tab('Chat', elem_id='chat-tab'):
|
||||
with gr.Row(elem_id='past-chats-row', elem_classes=['pretty_scrollbar']):
|
||||
with gr.Column():
|
||||
with gr.Row(elem_id='past-chats-buttons'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue