Skip to content

Commit b4594d3

Browse files
authored
Merge pull request #484 from monotykamary/style/clean-up-chat-row-double-scroll
style: clean up chat row and api provider double scroll
2 parents b91bffb + ece6310 commit b4594d3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,12 @@ export const ChatRowContent = ({
567567
style={{
568568
display: "flex",
569569
justifyContent: "space-between",
570-
alignItems: "center",
570+
alignItems: "flex-start",
571571
gap: "10px",
572572
}}>
573-
<span style={{ display: "block", flexGrow: 1 }}>{highlightMentions(message.text)}</span>
573+
<span style={{ display: "block", flexGrow: 1, padding: "4px" }}>
574+
{highlightMentions(message.text)}
575+
</span>
574576
<VSCodeButton
575577
appearance="icon"
576578
style={{

webview-ui/src/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ https://github.com/microsoft/vscode-webview-ui-toolkit/tree/main/src/dropdown#wi
119119
margin-bottom: 2px;
120120
}
121121

122+
/* Fix dropdown double scrollbar overflow */
123+
#api-provider > div > ul {
124+
overflow: unset;
125+
}
126+
122127
/* Fix scrollbar in dropdown */
123128

124129
vscode-dropdown::part(listbox) {

0 commit comments

Comments
 (0)