Skip to content

Commit

Permalink
Chat UI quality of life improvements (jupyterlab#154)
Browse files Browse the repository at this point in the history
* Updates screen shot with placeholder

* Incorporates change to code
  • Loading branch information
JasonWeill authored and Marchlak committed Oct 28, 2024
1 parent 9cb3b20 commit 26b01f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Binary file modified docs/source/_static/chat-icon-left-tab-bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions packages/jupyter-ai/src/components/chat-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,18 @@ export function ChatInput(props: ChatInputProps): JSX.Element {
variant="outlined"
multiline
onKeyDown={handleKeyDown}
placeholder='Ask Jupyternaut anything'
InputProps={{
endAdornment: (
<InputAdornment position="end">
<IconButton size="small" color="primary" onClick={props.onSend} disabled={!props.value.trim().length}>
<SendIcon />
<IconButton
size="small"
color="primary"
onClick={props.onSend}
disabled={!props.value.trim().length}
title='Send message (SHIFT+ENTER)'
>
<SendIcon />
</IconButton>
</InputAdornment>
)
Expand Down

0 comments on commit 26b01f0

Please sign in to comment.