Browse Source

Merge pull request #484 from monotykamary/style/clean-up-chat-row-double-scroll

style: clean up chat row and api provider double scroll
Matt Rubens 11 months ago
parent
commit
b4594d36f6
2 changed files with 9 additions and 2 deletions
  1. 4 2
      webview-ui/src/components/chat/ChatRow.tsx
  2. 5 0
      webview-ui/src/index.css

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

@@ -567,10 +567,12 @@ export const ChatRowContent = ({
 								style={{
 									display: "flex",
 									justifyContent: "space-between",
-									alignItems: "center",
+									alignItems: "flex-start",
 									gap: "10px",
 								}}>
-								<span style={{ display: "block", flexGrow: 1 }}>{highlightMentions(message.text)}</span>
+								<span style={{ display: "block", flexGrow: 1, padding: "4px" }}>
+									{highlightMentions(message.text)}
+								</span>
 								<VSCodeButton
 									appearance="icon"
 									style={{

+ 5 - 0
webview-ui/src/index.css

@@ -119,6 +119,11 @@ https://github.com/microsoft/vscode-webview-ui-toolkit/tree/main/src/dropdown#wi
 	margin-bottom: 2px;
 }
 
+/* Fix dropdown double scrollbar overflow */
+#api-provider > div > ul {
+	overflow: unset;
+}
+
 /* Fix scrollbar in dropdown */
 
 vscode-dropdown::part(listbox) {