Update app.py
Browse files
app.py
CHANGED
|
@@ -239,22 +239,21 @@ footer { display: none !important; }
|
|
| 239 |
label.svelte-1to105q {
|
| 240 |
display: none !important;
|
| 241 |
}
|
| 242 |
-
/*
|
| 243 |
-
html, body, #root, .main, .
|
| 244 |
-
max-width:
|
| 245 |
-
width:
|
| 246 |
-
|
| 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:
|
| 258 |
padding: 10px 14px !important;
|
| 259 |
border-radius: 12px !important;
|
| 260 |
word-break: break-word !important;
|
|
@@ -262,6 +261,7 @@ html, body, #root, .main, .prose, .block, .wrap, .gradio-container, .gr-box, .gr
|
|
| 262 |
}
|
| 263 |
|
| 264 |
|
|
|
|
| 265 |
@media screen and (max-width: 768px) {
|
| 266 |
#chatbox .message {
|
| 267 |
font-size: 13px !important;
|
|
|
|
| 239 |
label.svelte-1to105q {
|
| 240 |
display: none !important;
|
| 241 |
}
|
| 242 |
+
/* ✅ 解锁 Gradio 聊天气泡在 iframe / mobile 下的最大可用宽度 */
|
| 243 |
+
html, body, .gradio-container, #root, .main, .wrap, .prose, .gr-box {
|
| 244 |
+
max-width: 100% !important;
|
| 245 |
+
width: 100% !important;
|
| 246 |
+
margin: 0 auto !important;
|
| 247 |
padding: 0 !important;
|
|
|
|
| 248 |
box-sizing: border-box !important;
|
| 249 |
overflow-x: hidden !important;
|
| 250 |
}
|
| 251 |
|
| 252 |
+
/* ✅ 聊天气泡最大宽度调整(让其撑满屏幕宽度的 96%) */
|
| 253 |
#chatbox .message {
|
| 254 |
font-size: 15px !important;
|
| 255 |
line-height: 1.5em !important;
|
| 256 |
+
max-width: 96vw !important; /* <-- 改成 viewport 宽度 */
|
| 257 |
padding: 10px 14px !important;
|
| 258 |
border-radius: 12px !important;
|
| 259 |
word-break: break-word !important;
|
|
|
|
| 261 |
}
|
| 262 |
|
| 263 |
|
| 264 |
+
|
| 265 |
@media screen and (max-width: 768px) {
|
| 266 |
#chatbox .message {
|
| 267 |
font-size: 13px !important;
|