fix(web): square the user's chat bubble at the top right (UF-053)

User messages sit on the right, but the bubble's one square corner was the
top left, pointing away from the sender.
This commit is contained in:
shumeiko.it
2026-10-27 13:15:57 +01:00
parent da574a5a7e
commit f3c48e6f19
3 changed files with 19 additions and 1 deletions

View File

@@ -1244,7 +1244,8 @@ const ChatApp = ({
// near-surface fill was white-on-white in light mode.
// R9 Lane D: dedicated --user-bubble token warms the light-mode
// fill (the shared honey-wash read cold green-grey there).
? 'rounded-[4px_14px_14px_14px] border border-[var(--user-bubble-line)] bg-[var(--user-bubble)] px-3.5 py-2.5 leading-[1.55] text-[var(--text)]'
// The square corner points at the sender: top right (UF-053).
? 'rounded-[14px_4px_14px_14px] border border-[var(--user-bubble-line)] bg-[var(--user-bubble)] px-3.5 py-2.5 leading-[1.55] text-[var(--text)]'
: msg.role === 'system'
? 'rounded-[12px] bg-[var(--surface-2)] px-3 py-2 text-[12px] italic text-[var(--text-muted)]'
: 'rounded-[14px] px-3.5 py-2.5 leading-[1.6] text-[var(--text)]'