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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -242,6 +242,11 @@ with gr.Blocks(css="""
242
  overflow-wrap: anywhere !important; /* ✅ 关键修复:允许单词智能断行 */
243
  }
244
 
 
 
 
 
 
245
 
246
  /* ✅ 气泡颜色样式 */
247
  #chatbox .message.user {
 
242
  overflow-wrap: anywhere !important; /* ✅ 关键修复:允许单词智能断行 */
243
  }
244
 
245
+ #chatbox .message.user {
246
+ background-color: #DCF8C6 !important;
247
+ min-width: 60px !important; /* ✅ 至少能装下一个短单词 */
248
+ max-width: fit-content !important; /* ✅ 自动根据内容长度调整宽度 */
249
+ }
250
 
251
  /* ✅ 气泡颜色样式 */
252
  #chatbox .message.user {