Update app.py
Browse files
app.py
CHANGED
|
@@ -214,10 +214,10 @@ with gr.Blocks(css="""
|
|
| 214 |
cursor: pointer;
|
| 215 |
}
|
| 216 |
#chatbox .avatar-container {
|
| 217 |
-
width:
|
| 218 |
-
height:
|
| 219 |
-
min-width:
|
| 220 |
-
min-height:
|
| 221 |
background-size: 100% 100% !important;
|
| 222 |
background-position: center center !important;
|
| 223 |
border-radius: 50% !important;
|
|
@@ -228,6 +228,27 @@ with gr.Blocks(css="""
|
|
| 228 |
background-color: transparent !important;
|
| 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; }
|
|
|
|
| 214 |
cursor: pointer;
|
| 215 |
}
|
| 216 |
#chatbox .avatar-container {
|
| 217 |
+
width: 54px !important;
|
| 218 |
+
height: 54px !important;
|
| 219 |
+
min-width: 54px !important;
|
| 220 |
+
min-height: 54px !important;
|
| 221 |
background-size: 100% 100% !important;
|
| 222 |
background-position: center center !important;
|
| 223 |
border-radius: 50% !important;
|
|
|
|
| 228 |
background-color: transparent !important;
|
| 229 |
}
|
| 230 |
#chatbox .message.user { background-color: #DCF8C6 !important; }
|
| 231 |
+
#chatbox .message {
|
| 232 |
+
display: inline-block !important;
|
| 233 |
+
font-size: 16px !important;
|
| 234 |
+
line-height: 1.3em !important;
|
| 235 |
+
min-width: 7ch !important;
|
| 236 |
+
max-width: 60ch !important;
|
| 237 |
+
padding: 2px 3px !important;
|
| 238 |
+
border-radius: 8px !important;
|
| 239 |
+
word-break: break-word !important;
|
| 240 |
+
white-space: normal !important;
|
| 241 |
+
}
|
| 242 |
+
@media screen and (max-width: 768px) {
|
| 243 |
+
#chatbox .message.user {
|
| 244 |
+
max-width: 90vw !important;
|
| 245 |
+
}
|
| 246 |
+
}
|
| 247 |
+
#chatbox .message.user {
|
| 248 |
+
background-color: #DCF8C6 !important;
|
| 249 |
+
min-width: 60px !important; /* ✅ 至少能装下一个短单词 */
|
| 250 |
+
max-width: fit-content !important; /* ✅ 自动根据内容长度调整宽度 */
|
| 251 |
+
}
|
| 252 |
#chatbox .message.assistant { background-color: #ffffff !important; }
|
| 253 |
footer { display: none !important; }
|
| 254 |
.svelte-1ipelgc { display: none !important; }
|