mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-20 04:42:46 +08:00
fix: #2230 hide chat actions for context prompts
This commit is contained in:
@@ -888,7 +888,8 @@ export function Chat() {
|
|||||||
const showActions =
|
const showActions =
|
||||||
!isUser &&
|
!isUser &&
|
||||||
i > 0 &&
|
i > 0 &&
|
||||||
!(message.preview || message.content.length === 0);
|
!(message.preview || message.content.length === 0) &&
|
||||||
|
i >= context.length; // do not show actions for context prompts
|
||||||
const showTyping = message.preview || message.streaming;
|
const showTyping = message.preview || message.streaming;
|
||||||
|
|
||||||
const shouldShowClearContextDivider = i === clearContextIndex - 1;
|
const shouldShowClearContextDivider = i === clearContextIndex - 1;
|
||||||
|
Reference in New Issue
Block a user