Просмотр исходного кода

fix: optimize ChatRowContent layout and styles (#4205)

* fix: optimize ChatRowContent layout and styles

* adjust ui calc performance
Tony Zhang 7 месяцев назад
Родитель
Сommit
662d6abfbd
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      webview-ui/src/components/chat/ChatRow.tsx

+ 4 - 3
webview-ui/src/components/chat/ChatRow.tsx

@@ -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()