From db6ebc7b25503e2a19f6749914ab345d5324001e Mon Sep 17 00:00:00 2001 From: Cx330 <1487537121@qq.com> Date: Tue, 8 Apr 2025 18:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=94=A8=E6=88=B7=E5=8F=91=E5=87=BA?= =?UTF-8?q?=E7=9A=84=E6=B6=88=E6=81=AF=E6=94=BE=E5=9C=A8=E5=8F=B3=E4=BE=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/chat.css | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/css/chat.css b/css/chat.css index 6417595..4c37573 100644 --- a/css/chat.css +++ b/css/chat.css @@ -32,6 +32,27 @@ animation: slideDown 0.3s ease-in forwards; } +.message { + margin: 5px 0; + padding: 10px 15px; + max-width: fit-content; + border-radius: 12px; + word-break: break-word; +} + + .message.user { + background-color: #daf1fc; + align-self: flex-end; + text-align: left; + margin-left: auto; +} + + .message.bot { + background-color: #eee; + align-self: flex-start; + text-align: left; + margin-right: auto; +} .input-row { display: flex;