one-design-next 0.0.54 → 0.0.55
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/dist/_genui-types.d.ts
CHANGED
package/dist/chat-item/index.js
CHANGED
|
@@ -205,7 +205,8 @@ export function ChatItem(_ref2) {
|
|
|
205
205
|
var labelRef = useRef(null);
|
|
206
206
|
var titleRef = useRef(null);
|
|
207
207
|
var trailingRef = useRef(null);
|
|
208
|
-
|
|
208
|
+
// active 时隐藏 waiting/unread/error;generating 仍展示(当前会话仍在生成)
|
|
209
|
+
var showStatus = Boolean(status && (!active || status === 'generating'));
|
|
209
210
|
var showTypeIcon = type === 'human';
|
|
210
211
|
var fitTitle = showTypeIcon || showStatus;
|
|
211
212
|
var displayTitle = useFittedTitle(title, fitTitle, labelRef, titleRef, trailingRef);
|