fix: optimize ChatRowContent layout and styles (#4205)

* fix: optimize ChatRowContent layout and styles

* adjust ui calc performance
This commit is contained in:
Tony Zhang 2025-06-02 11:09:29 +08:00 committed by GitHub
parent eb9c4aa03d
commit 662d6abfbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -904,14 +904,15 @@ export const ChatRowContent = ({
)
case "user_feedback":
return (
<div className="bg-vscode-editor-background border rounded-xs p-1 overflow-hidden whitespace-pre-wrap word-break-break-word overflow-wrap-anywhere">
<div className="flex justify-between gap-2">
<div className="flex-grow px-2 py-1">
<div className="bg-vscode-editor-background border rounded-xs p-1 overflow-hidden whitespace-pre-wrap">
<div className="flex justify-between">
<div className="flex-grow px-2 py-1 wrap-anywhere">
<Mention text={message.text} withShadow />
</div>
<Button
variant="ghost"
size="icon"
className="shrink-0"
disabled={isStreaming}
onClick={(e) => {
e.stopPropagation()