Skip to content

Commit 662d6ab

Browse files
authored
fix: optimize ChatRowContent layout and styles (#4205)
* fix: optimize ChatRowContent layout and styles * adjust ui calc performance
1 parent eb9c4aa commit 662d6ab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,14 +904,15 @@ export const ChatRowContent = ({
904904
)
905905
case "user_feedback":
906906
return (
907-
<div className="bg-vscode-editor-background border rounded-xs p-1 overflow-hidden whitespace-pre-wrap word-break-break-word overflow-wrap-anywhere">
908-
<div className="flex justify-between gap-2">
909-
<div className="flex-grow px-2 py-1">
907+
<div className="bg-vscode-editor-background border rounded-xs p-1 overflow-hidden whitespace-pre-wrap">
908+
<div className="flex justify-between">
909+
<div className="flex-grow px-2 py-1 wrap-anywhere">
910910
<Mention text={message.text} withShadow />
911911
</div>
912912
<Button
913913
variant="ghost"
914914
size="icon"
915+
className="shrink-0"
915916
disabled={isStreaming}
916917
onClick={(e) => {
917918
e.stopPropagation()

0 commit comments

Comments
 (0)