Add a border

This commit is contained in:
oobabooga 2023-09-14 07:20:36 -07:00
parent 416e8f4758
commit 94dc64f870
2 changed files with 5 additions and 2 deletions

View File

@ -502,10 +502,13 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
border-radius: 0px !important; border-radius: 0px !important;
justify-content: left; justify-content: left;
margin: 0 !important; margin: 0 !important;
}
.hover-menu button:not(#clear-history-confirm) {
border-bottom: 0 !important; border-bottom: 0 !important;
} }
.hover-menu button:last-child { .hover-menu button:not(#clear-history-confirm):last-child {
border-bottom: var(--button-border-width) solid var(--button-secondary-border-color) !important; border-bottom: var(--button-border-width) solid var(--button-secondary-border-color) !important;
} }

View File

@ -50,7 +50,7 @@ def create_ui():
shared.gradio['Send dummy reply'] = gr.Button('Send dummy reply') shared.gradio['Send dummy reply'] = gr.Button('Send dummy reply')
shared.gradio['Clear history'] = gr.Button('Clear history') shared.gradio['Clear history'] = gr.Button('Clear history')
shared.gradio['Clear history-cancel'] = gr.Button('Cancel', visible=False) shared.gradio['Clear history-cancel'] = gr.Button('Cancel', visible=False)
shared.gradio['Clear history-confirm'] = gr.Button('Confirm', variant='stop', visible=False) shared.gradio['Clear history-confirm'] = gr.Button('Confirm', variant='stop', visible=False, elem_id='clear-history-confirm')
shared.gradio['send-chat-to-default'] = gr.Button('Send to default') shared.gradio['send-chat-to-default'] = gr.Button('Send to default')
shared.gradio['send-chat-to-notebook'] = gr.Button('Send to notebook') shared.gradio['send-chat-to-notebook'] = gr.Button('Send to notebook')