diff --git a/webview-ui/src/components/chat/AutoApproveMenu.tsx b/webview-ui/src/components/chat/AutoApproveMenu.tsx index ac02d6b8c4..b5d43f7dcf 100644 --- a/webview-ui/src/components/chat/AutoApproveMenu.tsx +++ b/webview-ui/src/components/chat/AutoApproveMenu.tsx @@ -134,7 +134,7 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => { display: "flex", alignItems: "center", gap: "8px", - padding: isExpanded ? "8px 0" : "8px 0 0 0", + padding: isExpanded ? "8px 0" : "2px 0 0 0", cursor: "pointer", }} onClick={toggleExpanded}> diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index dc07764077..51279062d2 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -787,10 +787,10 @@ const ChatTextArea = forwardRef( "relative", "flex", "flex-col", - "gap-2", + "gap-1", "bg-editor-background", - "m-2 mt-1", - "p-1.5", + "px-1.5", + "pb-1", "outline-none", "border", "border-none", @@ -998,7 +998,7 @@ const ChatTextArea = forwardRef( /> )} -
+
{showAnnouncement && } @@ -1447,7 +1449,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction +
)} @@ -1458,7 +1460,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction
- - {showScrollToBottom ? ( -
- -
{ - scrollToBottomSmooth() - disableAutoScrollRef.current = false - }}> - -
-
-
- ) : ( +
+ +
+ {areButtonsVisible && (
- {primaryButtonText && !isStreaming && ( - - handlePrimaryButtonClick(inputValue, selectedImages)}> - {primaryButtonText} - - - )} - {(secondaryButtonText || isStreaming) && ( - + {showScrollToBottom ? ( + handleSecondaryButtonClick(inputValue, selectedImages)}> - {isStreaming ? t("chat:cancel.title") : secondaryButtonText} + className="flex-[2]" + onClick={() => { + scrollToBottomSmooth() + disableAutoScrollRef.current = false + }}> + + ) : ( + <> + {primaryButtonText && !isStreaming && ( + + handlePrimaryButtonClick(inputValue, selectedImages)}> + {primaryButtonText} + + + )} + {(secondaryButtonText || isStreaming) && ( + + handleSecondaryButtonClick(inputValue, selectedImages)}> + {isStreaming ? t("chat:cancel.title") : secondaryButtonText} + + + )} + )}
)} diff --git a/webview-ui/src/components/history/TaskItem.tsx b/webview-ui/src/components/history/TaskItem.tsx index 5ebe9f9831..5338819dd3 100644 --- a/webview-ui/src/components/history/TaskItem.tsx +++ b/webview-ui/src/components/history/TaskItem.tsx @@ -68,7 +68,7 @@ const TaskItem = ({
)} -
+
{/* Header with metadata */}