Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
5429d8b
1
Parent(s):
1d95aeb
refactor: 适配 gradio-app/gradio#4916
Browse files调整了padding。
https://github.com/gradio-app/gradio/pull/4916
- ChuanhuChatbot.py +4 -3
- assets/custom.css +4 -0
ChuanhuChatbot.py
CHANGED
@@ -167,7 +167,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
167 |
placeholder=i18n("设置文件名: 默认为.json,可选为.md"),
|
168 |
label=i18n("设置保存文件名"),
|
169 |
value=i18n("对话历史记录"),
|
170 |
-
container
|
|
|
171 |
)
|
172 |
with gr.Column(scale=1):
|
173 |
saveHistoryBtn = gr.Button(i18n("💾 保存对话"))
|
@@ -287,8 +288,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
287 |
value=config.api_host or shared.API_HOST,
|
288 |
lines=1,
|
289 |
interactive=False,
|
290 |
-
container=False,
|
291 |
-
elem_classes="view_only_textbox",
|
292 |
)
|
293 |
# changeAPIURLBtn = gr.Button(i18n("🔄 切换API地址"))
|
294 |
|
|
|
167 |
placeholder=i18n("设置文件名: 默认为.json,可选为.md"),
|
168 |
label=i18n("设置保存文件名"),
|
169 |
value=i18n("对话历史记录"),
|
170 |
+
elem_classes="no-container"
|
171 |
+
# container=False,
|
172 |
)
|
173 |
with gr.Column(scale=1):
|
174 |
saveHistoryBtn = gr.Button(i18n("💾 保存对话"))
|
|
|
288 |
value=config.api_host or shared.API_HOST,
|
289 |
lines=1,
|
290 |
interactive=False,
|
291 |
+
# container=False,
|
292 |
+
elem_classes="view_only_textbox no-container",
|
293 |
)
|
294 |
# changeAPIURLBtn = gr.Button(i18n("🔄 切换API地址"))
|
295 |
|
assets/custom.css
CHANGED
@@ -158,6 +158,10 @@ span.hideK {
|
|
158 |
transition: opacity 1s ease-in-out;
|
159 |
}
|
160 |
|
|
|
|
|
|
|
|
|
161 |
/* status_display */
|
162 |
#status_display {
|
163 |
display: flex;
|
|
|
158 |
transition: opacity 1s ease-in-out;
|
159 |
}
|
160 |
|
161 |
+
div.no-container {
|
162 |
+
padding: 10px 0 0 0 !important;
|
163 |
+
}
|
164 |
+
|
165 |
/* status_display */
|
166 |
#status_display {
|
167 |
display: flex;
|