|
@@ -18,13 +18,13 @@
|
|
|
|
|
|
.message {
|
|
|
display: flex;
|
|
|
- align-items: flex-start;
|
|
|
max-width: 85%;
|
|
|
margin-bottom: 4px;
|
|
|
- width: 100%; /* 添加宽度限制 */
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
|
|
|
.message.user {
|
|
|
+ justify-content: flex-end;
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
|
|
@@ -35,23 +35,23 @@
|
|
|
background: #fff;
|
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
|
transition: all 0.3s ease;
|
|
|
- max-width: 100%; /* 限制最大宽度 */
|
|
|
- overflow-wrap: break-word; /* 确保长文本会换行 */
|
|
|
- word-wrap: break-word; /* 兼容性支持 */
|
|
|
- word-break: break-word; /* 允许在单词内换行 */
|
|
|
- hyphens: auto; /* 添加连字符支持 */
|
|
|
-}
|
|
|
-
|
|
|
-.message.assistant .message-content {
|
|
|
- background: #f0f4f8; /* AI消息背景色 */
|
|
|
- border-top-left-radius: 4px;
|
|
|
+ max-width: 100%;
|
|
|
+ overflow-wrap: break-word;
|
|
|
+ word-wrap: break-word;
|
|
|
+ word-break: break-word;
|
|
|
+ hyphens: auto;
|
|
|
}
|
|
|
|
|
|
.message.user .message-content {
|
|
|
- background: #e8f4ff; /* 用户消息背景色 */
|
|
|
+ background: #e8f4ff;
|
|
|
border-top-right-radius: 4px;
|
|
|
}
|
|
|
|
|
|
+.message.assistant .message-content {
|
|
|
+ background: #f0f4f8;
|
|
|
+ border-top-left-radius: 4px;
|
|
|
+}
|
|
|
+
|
|
|
.message p {
|
|
|
margin: 0;
|
|
|
line-height: 1.5;
|
|
@@ -1027,3 +1027,17 @@
|
|
|
#upload-button:active {
|
|
|
transform: scale(0.95);
|
|
|
}
|
|
|
+
|
|
|
+/* 停止生成按钮 */
|
|
|
+.stop-button {
|
|
|
+ display: none;
|
|
|
+ color: #d32f2f;
|
|
|
+}
|
|
|
+
|
|
|
+.stop-button.show {
|
|
|
+ display: inline-flex;
|
|
|
+}
|
|
|
+
|
|
|
+.stop-button:hover {
|
|
|
+ background-color: rgba(211, 47, 47, 0.08);
|
|
|
+}
|