From 2d766d2e1945896f27486b1e1d764cbaa31f4af3 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 21 Apr 2023 02:35:28 -0300 Subject: [PATCH] Improve notebook mode button sizes --- css/main.css | 4 ++++ server.py | 13 ++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/css/main.css b/css/main.css index 547868e..82ca96f 100644 --- a/css/main.css +++ b/css/main.css @@ -107,3 +107,7 @@ footer { button { font-size: 14px !important; } + +.small-button { + max-width: 171px; +} diff --git a/server.py b/server.py index bc4f73f..5cbce5e 100644 --- a/server.py +++ b/server.py @@ -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('
')