yt-chat-components 1.3.9 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -52,8 +52,7 @@ export const customThoughtChainStyle = `
|
|
|
52
52
|
|
|
53
53
|
/* 节点头部样式 */
|
|
54
54
|
.custom-thought-chain-item-header {
|
|
55
|
-
display:
|
|
56
|
-
align-items: flex-start;
|
|
55
|
+
display: inline-block;
|
|
57
56
|
margin-bottom: 8px;
|
|
58
57
|
}
|
|
59
58
|
|
|
@@ -92,7 +91,7 @@ export const customThoughtChainStyle = `
|
|
|
92
91
|
|
|
93
92
|
/* 标题容器样式 */
|
|
94
93
|
.custom-thought-chain-item-title-container {
|
|
95
|
-
|
|
94
|
+
display: inline-block
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
/* 标题样式 */
|
|
@@ -113,13 +112,15 @@ export const customThoughtChainStyle = `
|
|
|
113
112
|
|
|
114
113
|
/* 内容样式 */
|
|
115
114
|
.custom-thought-chain-item-content {
|
|
115
|
+
display: inline-block;
|
|
116
116
|
margin-bottom: 8px;
|
|
117
117
|
background: white;
|
|
118
118
|
padding: 12px;
|
|
119
119
|
border-radius: 8px;
|
|
120
120
|
border: 1px solid #f0f0f0;
|
|
121
121
|
margin-left: -30px;
|
|
122
|
-
|
|
122
|
+
position: relative;
|
|
123
|
+
z-index: 2 !important;
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
/* 页脚样式 */
|
|
@@ -28,6 +28,8 @@ export const cardStyle= `
|
|
|
28
28
|
width: 45px;
|
|
29
29
|
height: 45px;
|
|
30
30
|
border-radius: 12px;
|
|
31
|
+
margin: 0 8px 0 0 !important;
|
|
32
|
+
|
|
31
33
|
}
|
|
32
34
|
.text-group_3 {
|
|
33
35
|
margin-left: 12px;
|
|
@@ -89,7 +91,7 @@ export const cardStyle= `
|
|
|
89
91
|
.thumbnail_1 {
|
|
90
92
|
width: 10px;
|
|
91
93
|
height: 12px;
|
|
92
|
-
margin
|
|
94
|
+
margin: 0 8px 0 0 !important;
|
|
93
95
|
}
|
|
94
96
|
`
|
|
95
97
|
|
|
@@ -296,18 +296,18 @@ export default function ChatWindow({
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
// id切换表示一句话说完了, 新增信息
|
|
299
|
-
if (content_id !== id){
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}else{
|
|
299
|
+
// if (content_id !== id){
|
|
300
|
+
// content_id = id
|
|
301
|
+
//
|
|
302
|
+
// // 如果 event_latest 是 token,此刻变成了 t_full_token,表示之前都在输出占位符,所以更新信息
|
|
303
|
+
// if (event_latest === 'token' && event === 't_full_token'){
|
|
304
|
+
// updateMessageItem({chunk, loadingMessage: loading_message || ''})
|
|
305
|
+
// } else {
|
|
306
|
+
// addMessageItem({chunk, id, name, loadingMessage:loading_message})
|
|
307
|
+
// }
|
|
308
|
+
// }else{
|
|
309
309
|
updateMessageItem({chunk, loadingMessage: loading_message || ''})
|
|
310
|
-
}
|
|
310
|
+
// }
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
if (lastMessage.current) {
|