Tuchuanhuhuhu commited on
Commit
389ae06
1 Parent(s): bc82369

UI: 优化按钮大小

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +10 -6
ChuanhuChatbot.py CHANGED
@@ -66,12 +66,16 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
66
  submitBtn = gr.Button(value="", variant="primary", elem_id="submit-btn")
67
  cancelBtn = gr.Button(value="", variant="secondary", visible=False, elem_id="cancel-btn")
68
  with gr.Row():
69
- emptyBtn = gr.Button(
70
- i18n("🧹 新的对话"), elem_id="empty-btn"
71
- )
72
- retryBtn = gr.Button(i18n("🔄 重新生成"))
73
- delFirstBtn = gr.Button(i18n("🗑️ 删除最旧对话"))
74
- delLastBtn = gr.Button(i18n("🗑️ 删除最新对话"))
 
 
 
 
75
  with gr.Row(visible=False) as like_dislike_area:
76
  with gr.Column(min_width=20, scale=1):
77
  likeBtn = gr.Button(i18n("👍"))
 
66
  submitBtn = gr.Button(value="", variant="primary", elem_id="submit-btn")
67
  cancelBtn = gr.Button(value="", variant="secondary", visible=False, elem_id="cancel-btn")
68
  with gr.Row():
69
+ with gr.Column(min_width=120, scale=1):
70
+ emptyBtn = gr.Button(
71
+ i18n("🧹 新的对话"), elem_id="empty-btn"
72
+ )
73
+ with gr.Column(min_width=120, scale=1):
74
+ retryBtn = gr.Button(i18n("🔄 重新生成"))
75
+ with gr.Column(min_width=120, scale=1):
76
+ delFirstBtn = gr.Button(i18n("🗑️ 删除最旧对话"))
77
+ with gr.Column(min_width=120, scale=1):
78
+ delLastBtn = gr.Button(i18n("🗑️ 删除最新对话"))
79
  with gr.Row(visible=False) as like_dislike_area:
80
  with gr.Column(min_width=20, scale=1):
81
  likeBtn = gr.Button(i18n("👍"))