From b95fb074b1bebc899261519429dc2d25e93a7c9c Mon Sep 17 00:00:00 2001 From: Markov Date: Tue, 24 Feb 2026 13:17:48 +0100 Subject: [PATCH] fix: use inline styles for message backgrounds (Tailwind purge issue) --- src/components/ChatPanel.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ChatPanel.tsx b/src/components/ChatPanel.tsx index 775e570..6cf7449 100644 --- a/src/components/ChatPanel.tsx +++ b/src/components/ChatPanel.tsx @@ -203,14 +203,14 @@ export default function ChatPanel({ chatId, fullscreen = false }: Props) {
Загрузка...
)} {messages.map((msg) => { - const bgClass = + const bgStyle = msg.author_type === "system" - ? "bg-yellow-900/30 rounded px-2 py-1" + ? { backgroundColor: "rgba(161, 120, 0, 0.2)", borderRadius: 6, padding: "4px 8px" } : msg.author_type === "agent" - ? "bg-green-900/30 rounded px-2 py-1" - : ""; + ? { backgroundColor: "rgba(0, 120, 60, 0.2)", borderRadius: 6, padding: "4px 8px" } + : undefined; return ( -
+
{AUTHOR_ICON[msg.author_type] || "👤"} {msg.author_slug}