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

web change

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -137,19 +137,19 @@ body, .gradio-container {
137
  color: #2c3e50 !important;
138
  }
139
 
140
- /* 调整 .bot.svelte-1nr59td.message 的宽度为较小值 */
141
  .bot.svelte-1nr59td.message {
142
- # max-width: 500px !important; /* 可根据需要调整为合适宽度 */
143
- # width: 100% !important;
144
- # margin-left: auto !important;
145
- # margin-right: auto !important;
146
-
147
- padding-left: 8px !important; /* 减小左侧内边距,原本默认内边距较大 */
148
- text-indent: 0 !important; /* 防止首行缩进 */
149
  }
150
 
151
 
152
 
 
 
 
 
 
 
153
  # .bot.svelte-1nr59td.message,
154
  # .md.svelte-1hf8a14.chatbot.prose {
155
  # width: 100% !important;
 
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
+ /* 关键:调整消息内容的包装器,让其填满左侧 */
148
+ .bot.svelte-1nr59td.message > .message-wrap {
149
+ margin-left: 0 !important;
150
+ padding-left: 0 !important;
151
+ }
152
+
153
  # .bot.svelte-1nr59td.message,
154
  # .md.svelte-1hf8a14.chatbot.prose {
155
  # width: 100% !important;