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:
@@ -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)]'
|
||||
|
||||
@@ -83,6 +83,13 @@ describe('Wave U Lane F fix 1 — message action row presence', () => {
|
||||
expect(screen.queryByText('· Current Model')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('UF-053: squares the user bubble at the top right, beside the sender', () => {
|
||||
render({ messages: [{ id: 'u1', role: 'user', content: 'Hello there', timestamp: new Date().toISOString() }] });
|
||||
const bubble = screen.getByText('Hello there').closest('.bg-\\[var\\(--user-bubble\\)\\]');
|
||||
expect(bubble).not.toBeNull();
|
||||
expect(bubble!.className).toContain('rounded-[14px_4px_14px_14px]');
|
||||
});
|
||||
|
||||
it('keeps the empty-state mascot intrinsically sized before image decode', () => {
|
||||
render({ messages: [] });
|
||||
const emptyState = screen.getByText("Pick a workspace and Waggle's ready").closest('div');
|
||||
|
||||
Reference in New Issue
Block a user