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 {
font-size: 14px !important;
}
.small-button {
max-width: 171px;
}

View File

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