fix(ui): chat bubble max-w-xs broken by tailwind spacing override (4px not 320px)

tailwind.config.js overrides spacing.xs to 4px, which also overrides
max-w-xs to max-width: 4px instead of the default 20rem (320px).
Changed to explicit max-w-[280px] to bypass the corrupted token.
This commit is contained in:
asepharyana
2026-07-02 07:08:58 +07:00
parent 77812f9452
commit 948e41cec6
@@ -188,7 +188,7 @@ export function MascotChatbot({
)}
<div
className={cn(
"max-w-xs px-3 py-2 rounded-xl text-sm leading-relaxed [overflow-wrap:anywhere]",
"max-w-[280px] px-3 py-2 rounded-xl text-sm leading-relaxed [overflow-wrap:anywhere]",
message.role === "user"
? "bg-[#23a1eb] text-white rounded-br-[4px]"
: "bg-[#f5f5f5] text-[#1a1a1a] rounded-bl-[4px]",