Wanswan commited on
Commit
c58c216
·
verified ·
1 Parent(s): 8fa7f79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -229,20 +229,20 @@ with gr.Blocks(css="""
229
  box-shadow: none !important;
230
  }
231
 
232
- /* ✅ 聊天气泡核心控制样式 */
233
  #chatbox .message {
234
  display: inline-block !important;
235
  font-size: 16px !important;
236
  line-height: 1.4em !important;
237
  min-width: 5ch !important;
238
- max-width: 95% !important;
239
- padding: 4px 6px !important;
240
  border-radius: 10px !important;
241
- overflow-wrap: anywhere !important;
242
  word-break: break-word !important;
243
  white-space: pre-wrap !important;
 
244
  }
245
 
 
246
  /* ✅ 气泡颜色样式 */
247
  #chatbox .message.user {
248
  background-color: #DCF8C6 !important;
 
229
  box-shadow: none !important;
230
  }
231
 
 
232
  #chatbox .message {
233
  display: inline-block !important;
234
  font-size: 16px !important;
235
  line-height: 1.4em !important;
236
  min-width: 5ch !important;
237
+ max-width: 85% !important; /* ✅ 适配桌面和移动宽度 */
238
+ padding: 6px 10px !important;
239
  border-radius: 10px !important;
 
240
  word-break: break-word !important;
241
  white-space: pre-wrap !important;
242
+ overflow-wrap: anywhere !important; /* ✅ 关键修复:允许单词智能断行 */
243
  }
244
 
245
+
246
  /* ✅ 气泡颜色样式 */
247
  #chatbox .message.user {
248
  background-color: #DCF8C6 !important;