Properly close the hover menu on mobile

This commit is contained in:
oobabooga 2023-09-13 11:10:46 -07:00
parent 9fc46d3c19
commit 7cd437e05c
3 changed files with 58 additions and 14 deletions

View file

@ -25,7 +25,7 @@ def create_ui():
with gr.Row():
with gr.Column(scale=1):
gr.HTML(value='<div class="hover-element" onclick="void(0)"><span style="width: 100px; display: block">&#9776;</span><div class="hover-menu" id="hover-menu"></div>', elem_id='gr-hover')
gr.HTML(value='<div class="hover-element" onclick="void(0)"><span style="width: 100px; display: block" id="hover-element-button">&#9776;</span><div class="hover-menu" id="hover-menu"></div>', elem_id='gr-hover')
with gr.Column(scale=10):
shared.gradio['textbox'] = gr.Textbox(label='', placeholder='Send a message', elem_id='chat-input')