jcccy commited on
Commit
8fc8d61
·
1 Parent(s): 9ed8dbd

web change

Browse files
Files changed (1) hide show
  1. app.py +16 -2
app.py CHANGED
@@ -137,11 +137,25 @@ body, .gradio-container {
137
  color: #2c3e50 !important;
138
  }
139
 
 
140
  .bot.svelte-1nr59td.message {
141
- padding-left: 0 !important; /* 去除左侧内边距 */
142
- margin-left: 0 !important; /* 去除左侧外边距 */
 
 
 
 
 
 
 
 
 
143
  }
144
 
 
 
 
 
145
 
146
 
147
  /* 关键:调整消息内容的包装器,让其填满左侧 */
 
137
  color: #2c3e50 !important;
138
  }
139
 
140
+ /* 强制 bot 消息占满一行,消除侧边空隙 */
141
  .bot.svelte-1nr59td.message {
142
+ width: 100% !important;
143
+ max-width: 100% !important;
144
+ display: flex !important;
145
+ justify-content: flex-start !important; /* 确保整体靠左 */
146
+ }
147
+
148
+ /* 调整内部文字包装层,取消宽度限制 */
149
+ .bot.svelte-1nr59td.message .message-wrap {
150
+ width: 100% !important;
151
+ max-width: 100% !important;
152
+ flex-grow: 1 !important;
153
  }
154
 
155
+ /* 如果文字在一个气泡/容器里,去掉它的 margin */
156
+ .bot.svelte-1nr59td.message .md {
157
+ max-width: 100% !important;
158
+ }
159
 
160
 
161
  /* 关键:调整消息内容的包装器,让其填满左侧 */