Wanswan commited on
Commit
c848342
·
verified ·
1 Parent(s): 388c1ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -239,25 +239,27 @@ footer { display: none !important; }
239
  label.svelte-1to105q {
240
  display: none !important;
241
  }
242
- /* 关键:去掉 Gradio 默认的居中容器限制 */
243
- .wrap, .gr-container, .gradio-container, .gr-box, .gr-block.gr-box {
244
  max-width: 100vw !important;
245
  width: 100vw !important;
 
246
  margin: 0 !important;
247
  padding: 0 !important;
248
- box-shadow: none !important;
249
- border: none !important;
250
  }
251
 
252
- /* 让消息气泡可以更宽(同时设置字体缩小) */
253
  #chatbox .message {
254
- font-size: 8px !important;
255
  line-height: 1.4em !important;
 
256
  padding: 8px 12px !important;
257
- max-width: 95% !important;
258
  word-break: break-word !important;
259
  white-space: normal !important;
260
  }
 
261
  @media screen and (max-width: 768px) {
262
  #chatbox .message {
263
  font-size: 13px !important;
 
239
  label.svelte-1to105q {
240
  display: none !important;
241
  }
242
+ /* 💥 强制让所有 Gradio 容器撑满屏幕宽度 */
243
+ html, body, #root, .main, .prose, .block, .wrap, .gradio-container, .gr-box, .gr-container, .gr-block.gr-box {
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: 14px !important;
255
  line-height: 1.4em !important;
256
+ max-width: 94% !important;
257
  padding: 8px 12px !important;
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;