Skip to content

Commit ba97d6d

Browse files
authored
feat(chat): Use wrap: pre so that "text" messages appear as-written (#1778)
1 parent e60dad5 commit ba97d6d

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

js/chat/chat.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ shiny-user-message {
5353
max-width: 100%;
5454
}
5555

56+
shiny-user-message,
57+
shiny-chat-message {
58+
&[content_type="text"] {
59+
white-space: pre;
60+
overflow-x: auto;
61+
}
62+
}
63+
5664
shiny-chat-input {
5765
margin-top: auto;
5866
position: sticky;

shiny/www/py-shiny/chat/chat.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)