Wanswan commited on
Commit
b0ded68
·
verified ·
1 Parent(s): baf0c96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -229,6 +229,17 @@ with gr.Blocks(css="""
229
  }
230
  #chatbox .message.user { background-color: #DCF8C6 !important; }
231
  #chatbox .message.assistant { background-color: #ffffff !important; }
 
 
 
 
 
 
 
 
 
 
 
232
  footer { display: none !important; }
233
  .svelte-1ipelgc { display: none !important; }
234
  .icon-button-wrapper {
 
229
  }
230
  #chatbox .message.user { background-color: #DCF8C6 !important; }
231
  #chatbox .message.assistant { background-color: #ffffff !important; }
232
+ #chatbox .message {
233
+ font-size: 14px !important; /* ✅ 字体不要太大 */
234
+ line-height: 1.4em !important; /* ✅ 行距控制好 */
235
+ padding: 8px 12px !important; /* ✅ 气泡内边距 */
236
+ border-radius: 12px !important;
237
+ max-width: 85% !important; /* ✅ 控制气泡横向宽度 */
238
+ word-break: break-word !important;
239
+ white-space: normal !important;
240
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); /* 可选美化 */
241
+ }
242
+
243
  footer { display: none !important; }
244
  .svelte-1ipelgc { display: none !important; }
245
  .icon-button-wrapper {