Skip to content

Commit cd09571

Browse files
committed
fix:padding improved, removed scrollbar in inputbox
1 parent fec57e3 commit cd09571

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,8 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
633633
fontFamily: "var(--vscode-font-family)",
634634
fontSize: "var(--vscode-editor-font-size)",
635635
lineHeight: "var(--vscode-editor-line-height)",
636-
padding: "8px",
636+
padding: "2px",
637+
paddingRight: "8px",
637638
marginBottom: thumbnailsHeight > 0 ? `${thumbnailsHeight + 16}px` : 0,
638639
zIndex: 1,
639640
}}
@@ -667,8 +668,8 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
667668
onHeightChange?.(height)
668669
}}
669670
placeholder={placeholderText}
670-
minRows={2}
671-
maxRows={20}
671+
minRows={3}
672+
maxRows={15}
672673
autoFocus={true}
673674
style={{
674675
width: "100%",
@@ -684,11 +685,13 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
684685
overflowX: "hidden",
685686
overflowY: "auto",
686687
border: "none",
687-
padding: "8px",
688+
padding: "2px",
689+
paddingRight: "8px",
688690
marginBottom: thumbnailsHeight > 0 ? `${thumbnailsHeight + 16}px` : 0,
689691
cursor: textAreaDisabled ? "not-allowed" : undefined,
690692
flex: "0 1 auto",
691693
zIndex: 2,
694+
scrollbarWidth: "none",
692695
}}
693696
onScroll={() => updateHighlights()}
694697
/>
@@ -704,7 +707,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
704707
bottom: "36px",
705708
left: "16px",
706709
zIndex: 2,
707-
marginBottom: "8px",
710+
marginBottom: "4px",
708711
}}
709712
/>
710713
)}
@@ -715,7 +718,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
715718
justifyContent: "space-between",
716719
alignItems: "center",
717720
marginTop: "auto",
718-
paddingTop: "8px",
721+
paddingTop: "2px",
719722
}}>
720723
<div
721724
style={{

0 commit comments

Comments
 (0)