Fix bug where send button wouldnt render if textAreaHeight is unexpected type; update to version 0.0.5

This commit is contained in:
Saoud Rizwan
2024-07-10 12:09:40 -04:00
parent 46f14f32d1
commit ad4034df84
2 changed files with 20 additions and 22 deletions

View File

@@ -2,7 +2,7 @@
"name": "claude-dev", "name": "claude-dev",
"displayName": "Claude Dev", "displayName": "Claude Dev",
"description": "Claude Dev goes beyond simple code completion by reading & writing files, creating projects, and executing terminal commands with your permission.", "description": "Claude Dev goes beyond simple code completion by reading & writing files, creating projects, and executing terminal commands with your permission.",
"version": "0.0.4", "version": "0.0.5",
"engines": { "engines": {
"vscode": "^1.82.0" "vscode": "^1.82.0"
}, },

View File

@@ -38,7 +38,7 @@ const ChatView = ({ messages, isHidden }: ChatViewProps) => {
const options = { const options = {
containerId: "chat-view-container", containerId: "chat-view-container",
duration: instant ? 0 : 500, duration: instant ? 0 : 500,
smooth: instant ? false : 'easeOutQuint', smooth: instant ? false : "easeOutQuint",
} }
scroll.scrollToBottom(options) scroll.scrollToBottom(options)
} }
@@ -336,7 +336,7 @@ const ChatView = ({ messages, isHidden }: ChatViewProps) => {
)} )}
</div> </div>
)} )}
<div style={{ padding: "10px 15px", opacity: textAreaDisabled ? 0.7 : 1 }}> <div style={{ padding: "10px 15px", opacity: textAreaDisabled ? 0.7 : 1, position: "relative" }}>
<DynamicTextArea <DynamicTextArea
ref={textAreaRef} ref={textAreaRef}
value={inputValue} value={inputValue}
@@ -362,13 +362,12 @@ const ChatView = ({ messages, isHidden }: ChatViewProps) => {
padding: "8px 36px 8px 8px", padding: "8px 36px 8px 8px",
}} }}
/> />
{textAreaHeight && (
<div <div
style={{ style={{
position: "absolute", position: "absolute",
right: "20px", right: "20px",
height: `${textAreaHeight}px`, top: "0px",
bottom: "12px", bottom: "1.5px",
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
}}> }}>
@@ -380,7 +379,6 @@ const ChatView = ({ messages, isHidden }: ChatViewProps) => {
<span className="codicon codicon-send"></span> <span className="codicon codicon-send"></span>
</VSCodeButton> </VSCodeButton>
</div> </div>
)}
</div> </div>
</div> </div>
) )