Skip to content

Commit 124d781

Browse files
ivandezraihernandez
andauthored
Fix chat input field not scrolling when input is too long (#314)
Co-authored-by: ihernandez <[email protected]>
1 parent fb826d7 commit 124d781

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/jupyter-chat/src/components/input/chat-input.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ export function ChatInput(props: ChatInput.IProps): JSX.Element {
258258
variant="standard"
259259
className={INPUT_TEXTFIELD_CLASS}
260260
multiline
261+
maxRows={10}
261262
onKeyDown={handleKeyDown}
262263
placeholder="Type a chat message, @ to mention..."
263264
inputRef={inputRef}
@@ -269,6 +270,7 @@ export function ChatInput(props: ChatInput.IProps): JSX.Element {
269270
sx={{
270271
padding: 1.5,
271272
margin: 0,
273+
boxSizing: 'border-box',
272274
backgroundColor: 'var(--jp-layout-color0)',
273275
transition: 'background-color 0.2s ease',
274276
'& .MuiInputBase-root': {

0 commit comments

Comments
 (0)