Browse Source

Fix icon alignment

Saoud Rizwan 1 year ago
parent
commit
e4a7201a14
1 changed files with 19 additions and 17 deletions
  1. 19 17
      webview-ui/src/components/ChatView.tsx

+ 19 - 17
webview-ui/src/components/ChatView.tsx

@@ -653,23 +653,25 @@ const ChatView = ({
 						alignItems: "flex-end",
 						alignItems: "flex-end",
 						height: "calc(100% - 20px)", // Full height minus top and bottom padding
 						height: "calc(100% - 20px)", // Full height minus top and bottom padding
 					}}>
 					}}>
-					<VSCodeButton
-						disabled={shouldDisableImages}
-						appearance="icon"
-						aria-label="Attach Images"
-						onClick={selectImages}
-						style={{ marginRight: "2px" }}>
-						<span
-							className="codicon codicon-device-camera"
-							style={{ fontSize: 18.5, marginLeft: -2, marginBottom: 1 }}></span>
-					</VSCodeButton>
-					<VSCodeButton
-						disabled={textAreaDisabled}
-						appearance="icon"
-						aria-label="Send Message"
-						onClick={handleSendMessage}>
-						<span className="codicon codicon-send" style={{ fontSize: 16, marginTop: 2.5 }}></span>
-					</VSCodeButton>
+					<div style={{ display: "flex", flexDirection: "row", alignItems: "center" }}>
+						<VSCodeButton
+							disabled={shouldDisableImages}
+							appearance="icon"
+							aria-label="Attach Images"
+							onClick={selectImages}
+							style={{ marginRight: "2px" }}>
+							<span
+								className="codicon codicon-device-camera"
+								style={{ fontSize: 18, marginLeft: -2 }}></span>
+						</VSCodeButton>
+						<VSCodeButton
+							disabled={textAreaDisabled}
+							appearance="icon"
+							aria-label="Send Message"
+							onClick={handleSendMessage}>
+							<span className="codicon codicon-send" style={{ fontSize: 16 }}></span>
+						</VSCodeButton>
+					</div>
 				</div>
 				</div>
 			</div>
 			</div>
 		</div>
 		</div>