Update app.py
Browse files
app.py
CHANGED
|
@@ -239,27 +239,29 @@ footer { display: none !important; }
|
|
| 239 |
label.svelte-1to105q {
|
| 240 |
display: none !important;
|
| 241 |
}
|
| 242 |
-
/*
|
| 243 |
-
html, body, #root, .main, .prose, .block, .wrap, .gradio-container, .gr-box, .gr-container
|
| 244 |
max-width: 100vw !important;
|
| 245 |
width: 100vw !important;
|
| 246 |
min-width: 100vw !important;
|
| 247 |
-
margin: 0 !important;
|
| 248 |
padding: 0 !important;
|
|
|
|
| 249 |
box-sizing: border-box !important;
|
|
|
|
| 250 |
}
|
| 251 |
|
| 252 |
-
/*
|
| 253 |
#chatbox .message {
|
| 254 |
-
font-size:
|
| 255 |
-
line-height: 1.
|
| 256 |
-
max-width:
|
| 257 |
-
padding:
|
| 258 |
border-radius: 12px !important;
|
| 259 |
word-break: break-word !important;
|
| 260 |
white-space: normal !important;
|
| 261 |
}
|
| 262 |
|
|
|
|
| 263 |
@media screen and (max-width: 768px) {
|
| 264 |
#chatbox .message {
|
| 265 |
font-size: 13px !important;
|
|
@@ -329,4 +331,4 @@ body {
|
|
| 329 |
send_btn.click(respond, [user_input, state, step, language, questions, followup_mode],
|
| 330 |
[chatbot, user_input, step, language, questions, followup_mode])
|
| 331 |
|
| 332 |
-
demo.queue().launch(
|
|
|
|
| 239 |
label.svelte-1to105q {
|
| 240 |
display: none !important;
|
| 241 |
}
|
| 242 |
+
/* 让整个容器铺满屏幕,去掉默认 max-width 限制 */
|
| 243 |
+
html, body, #root, .main, .prose, .block, .wrap, .gradio-container, .gr-box, .gr-container {
|
| 244 |
max-width: 100vw !important;
|
| 245 |
width: 100vw !important;
|
| 246 |
min-width: 100vw !important;
|
|
|
|
| 247 |
padding: 0 !important;
|
| 248 |
+
margin: 0 !important;
|
| 249 |
box-sizing: border-box !important;
|
| 250 |
+
overflow-x: hidden !important;
|
| 251 |
}
|
| 252 |
|
| 253 |
+
/* 聊天气泡宽度优化 */
|
| 254 |
#chatbox .message {
|
| 255 |
+
font-size: 15px !important;
|
| 256 |
+
line-height: 1.5em !important;
|
| 257 |
+
max-width: 95% !important; /* 原来是 90% 或 94% 太窄 */
|
| 258 |
+
padding: 10px 14px !important;
|
| 259 |
border-radius: 12px !important;
|
| 260 |
word-break: break-word !important;
|
| 261 |
white-space: normal !important;
|
| 262 |
}
|
| 263 |
|
| 264 |
+
|
| 265 |
@media screen and (max-width: 768px) {
|
| 266 |
#chatbox .message {
|
| 267 |
font-size: 13px !important;
|
|
|
|
| 331 |
send_btn.click(respond, [user_input, state, step, language, questions, followup_mode],
|
| 332 |
[chatbot, user_input, step, language, questions, followup_mode])
|
| 333 |
|
| 334 |
+
demo.queue().launch()
|