Properly close the hover menu on mobile
This commit is contained in:
parent
9fc46d3c19
commit
7cd437e05c
3 changed files with 58 additions and 14 deletions
|
@ -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">☰</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">☰</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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue