Skip to content

Commit

Permalink
refactor: 适配 gradio-app/gradio#4916
Browse files Browse the repository at this point in the history
调整了padding。
gradio-app/gradio#4916
  • Loading branch information
Keldos-Li committed Aug 19, 2023
1 parent 0a9f875 commit e302910
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ChuanhuChatbot.py
Expand Up @@ -165,7 +165,8 @@ def create_new_model():
placeholder=i18n("设置文件名: 默认为.json,可选为.md"),
label=i18n("设置保存文件名"),
value=i18n("对话历史记录"),
container=False,
elem_classes="no-container"
# container=False,
)
with gr.Column(scale=1):
saveHistoryBtn = gr.Button(i18n("💾 保存对话"))
Expand Down Expand Up @@ -285,8 +286,8 @@ def create_new_model():
value=config.api_host or shared.API_HOST,
lines=1,
interactive=False,
container=False,
elem_classes="view_only_textbox",
# container=False,
elem_classes="view_only_textbox no-container",
)
# changeAPIURLBtn = gr.Button(i18n("🔄 切换API地址"))

Expand Down
4 changes: 4 additions & 0 deletions assets/custom.css
Expand Up @@ -158,6 +158,10 @@ span.hideK {
transition: opacity 1s ease-in-out;
}

div.no-container {
padding: 10px 0 0 0 !important;
}

/* status_display */
#status_display {
display: flex;
Expand Down

0 comments on commit e302910

Please sign in to comment.