Skip to content

Commit

Permalink
feat(chat): Use wrap: pre so that "text" messages appear as-written
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Nov 20, 2024
1 parent f6b92d8 commit bd35e77
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions js/chat/chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ shiny-chat-container {
}
}

shiny-user-message,
shiny-chat-message {
&[content_type="text"] {
white-space: pre;
overflow-x: auto;
}
}

shiny-chat-input {
margin-top: auto;
position: sticky;
Expand Down
2 changes: 1 addition & 1 deletion shiny/www/py-shiny/chat/chat.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bd35e77

Please sign in to comment.