avatar
Browse files
app.py
CHANGED
|
@@ -1000,15 +1000,36 @@ div.svelte-1wizwbi {
|
|
| 1000 |
display: none;
|
| 1001 |
}
|
| 1002 |
|
| 1003 |
-
# /* 隐藏 Chatbot 内部的滚动条 */
|
| 1004 |
-
# .custom-avatar ::-webkit-scrollbar {
|
| 1005 |
-
# display: none !important; /* Chrome, Safari, Edge */
|
| 1006 |
-
# }
|
| 1007 |
|
| 1008 |
-
|
| 1009 |
-
|
| 1010 |
-
|
| 1011 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1012 |
"""
|
| 1013 |
|
| 1014 |
|
|
|
|
| 1000 |
display: none;
|
| 1001 |
}
|
| 1002 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1003 |
|
| 1004 |
+
|
| 1005 |
+
/* 1. 核心消息容器:取消全宽,改为根据内容收缩 */
|
| 1006 |
+
.bot.svelte-1nr59td.message {
|
| 1007 |
+
width: fit-content !important;
|
| 1008 |
+
max-width: 85% !important; /* 限制最大宽度,防止长文本顶到头 */
|
| 1009 |
+
display: block !important; /* 确保它不会默认占满整行 */
|
| 1010 |
+
}
|
| 1011 |
+
|
| 1012 |
+
/* 2. 内部包装层:确保它们也是自适应宽度 */
|
| 1013 |
+
.bot.svelte-1nr59td.message .message-wrap,
|
| 1014 |
+
.bot.svelte-1nr59td.message .panel-full-width,
|
| 1015 |
+
.bot.svelte-1nr59td.message [data-testid="bot"] {
|
| 1016 |
+
width: fit-content !important;
|
| 1017 |
+
min-width: unset !important;
|
| 1018 |
+
max-width: 100% !important;
|
| 1019 |
+
}
|
| 1020 |
+
|
| 1021 |
+
/* 3. 消除 Markdown 内容区域的默认最小宽度 */
|
| 1022 |
+
.bot.svelte-1nr59td.message .prose {
|
| 1023 |
+
width: fit-content !important;
|
| 1024 |
+
min-width: unset !important;
|
| 1025 |
+
}
|
| 1026 |
+
|
| 1027 |
+
/* 4. 调整气泡内边距(Padding),让文字和边缘更紧凑 */
|
| 1028 |
+
div.message.bot {
|
| 1029 |
+
padding: 8px 14px !important; /* 原来是 14px 20px,缩小后更紧凑 */
|
| 1030 |
+
line-height: 1.4 !important; /* 稍微收缩行高 */
|
| 1031 |
+
}
|
| 1032 |
+
|
| 1033 |
"""
|
| 1034 |
|
| 1035 |
|