for now hide the fork button in langflow mode
This commit is contained in:
parent
97afd8f481
commit
a8a3c7b4ab
1 changed files with 11 additions and 9 deletions
|
|
@ -1463,15 +1463,17 @@ function ChatPage() {
|
||||||
{renderFunctionCalls(message.functionCalls || [], index)}
|
{renderFunctionCalls(message.functionCalls || [], index)}
|
||||||
<p className="text-foreground whitespace-pre-wrap break-words overflow-wrap-anywhere">{message.content}</p>
|
<p className="text-foreground whitespace-pre-wrap break-words overflow-wrap-anywhere">{message.content}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-shrink-0 ml-2">
|
{endpoint === 'chat' && (
|
||||||
<button
|
<div className="flex-shrink-0 ml-2">
|
||||||
onClick={(e) => handleForkConversation(index, e)}
|
<button
|
||||||
className="opacity-0 group-hover:opacity-100 transition-opacity p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground"
|
onClick={(e) => handleForkConversation(index, e)}
|
||||||
title="Fork conversation from here"
|
className="opacity-0 group-hover:opacity-100 transition-opacity p-1 hover:bg-accent rounded text-muted-foreground hover:text-foreground"
|
||||||
>
|
title="Fork conversation from here"
|
||||||
<GitBranch className="h-3 w-3" />
|
>
|
||||||
</button>
|
<GitBranch className="h-3 w-3" />
|
||||||
</div>
|
</button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue