diff --git a/panel/dist/css/chat_message.css b/panel/dist/css/chat_message.css index 084785ec3a..7727019bd5 100644 --- a/panel/dist/css/chat_message.css +++ b/panel/dist/css/chat_message.css @@ -85,7 +85,7 @@ width: fit-content; display: flex; align-items: center; - justify-content: center; + justify-content: left; overflow-wrap: anywhere; word-break: break-word; } @@ -147,3 +147,19 @@ font-size: 1.25em; line-height: 0.9em; } + +pre { + white-space: pre-wrap; + word-wrap: break-word; + overflow-wrap: break-word; +} + +p { + overflow-wrap: break-word; +} + +code { + white-space: pre-wrap; + word-wrap: break-word; + overflow-wrap: break-word; +}