From 7e741d006ed97648ec037406d0aa00b05ab97201 Mon Sep 17 00:00:00 2001 From: Andrew Huang Date: Thu, 19 Dec 2024 13:00:26 -0800 Subject: [PATCH] fix chat message align --- panel/dist/css/chat_message.css | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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; +}