Improve notebook mode button sizes

This commit is contained in:
oobabooga 2023-04-21 02:35:28 -03:00
parent c4f4f41389
commit 2d766d2e19
2 changed files with 8 additions and 9 deletions

View File

@ -107,3 +107,7 @@ footer {
button { button {
font-size: 14px !important; font-size: 14px !important;
} }
.small-button {
max-width: 171px;
}

View File

@ -615,15 +615,10 @@ def create_interface():
shared.gradio['html'] = gr.HTML() shared.gradio['html'] = gr.HTML()
with gr.Row(): with gr.Row():
with gr.Column(): shared.gradio['Generate'] = gr.Button('Generate', variant='primary', elem_classes="small-button")
with gr.Row(): shared.gradio['Stop'] = gr.Button('Stop', elem_classes="small-button")
shared.gradio['Generate'] = gr.Button('Generate', variant='primary') shared.gradio['Undo'] = gr.Button('Undo', elem_classes="small-button")
shared.gradio['Stop'] = gr.Button('Stop') shared.gradio['Regenerate'] = gr.Button('Regenerate', elem_classes="small-button")
shared.gradio['Undo'] = gr.Button('Undo')
shared.gradio['Regenerate'] = gr.Button('Regenerate')
with gr.Column():
pass
with gr.Column(scale=1): with gr.Column(scale=1):
gr.HTML('<div style="padding-bottom: 13px"></div>') gr.HTML('<div style="padding-bottom: 13px"></div>')