mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-23 00:16:48 +00:00
style(feedback): group copy and feedback buttons together on the left
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -63,13 +63,10 @@ export function MessageListItem({
|
|||||||
<MessageToolbar
|
<MessageToolbar
|
||||||
className={cn(
|
className={cn(
|
||||||
isHuman ? "-bottom-9 justify-end" : "-bottom-8",
|
isHuman ? "-bottom-9 justify-end" : "-bottom-8",
|
||||||
"absolute right-0 left-0 z-20",
|
"absolute right-0 left-0 z-20 opacity-0 transition-opacity delay-200 duration-300 group-hover/conversation-message:opacity-100",
|
||||||
!isHuman && runId && threadId
|
|
||||||
? "opacity-100"
|
|
||||||
: "opacity-0 transition-opacity delay-200 duration-300 group-hover/conversation-message:opacity-100",
|
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="flex gap-1 opacity-0 transition-opacity delay-200 duration-300 group-hover/conversation-message:opacity-100">
|
<div className="flex gap-1">
|
||||||
<CopyButton
|
<CopyButton
|
||||||
clipboardData={
|
clipboardData={
|
||||||
extractContentFromMessage(message) ??
|
extractContentFromMessage(message) ??
|
||||||
@@ -77,14 +74,14 @@ export function MessageListItem({
|
|||||||
""
|
""
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
{!isHuman && runId && threadId && (
|
||||||
|
<FeedbackButtons
|
||||||
|
threadId={threadId}
|
||||||
|
runId={runId}
|
||||||
|
initialFeedback={feedback ?? null}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{!isHuman && runId && threadId && (
|
|
||||||
<FeedbackButtons
|
|
||||||
threadId={threadId}
|
|
||||||
runId={runId}
|
|
||||||
initialFeedback={feedback ?? null}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</MessageToolbar>
|
</MessageToolbar>
|
||||||
)}
|
)}
|
||||||
</AIElementMessage>
|
</AIElementMessage>
|
||||||
|
|||||||
Reference in New Issue
Block a user