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:
@@ -188,7 +188,7 @@ export function MascotChatbot({
|
|||||||
)}
|
)}
|
||||||
<div
|
<div
|
||||||
className={cn(
|
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"
|
message.role === "user"
|
||||||
? "bg-[#23a1eb] text-white rounded-br-[4px]"
|
? "bg-[#23a1eb] text-white rounded-br-[4px]"
|
||||||
: "bg-[#f5f5f5] text-[#1a1a1a] rounded-bl-[4px]",
|
: "bg-[#f5f5f5] text-[#1a1a1a] rounded-bl-[4px]",
|
||||||
|
|||||||
Reference in New Issue
Block a user