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.
|
// near-surface fill was white-on-white in light mode.
|
||||||
// R9 Lane D: dedicated --user-bubble token warms the light-mode
|
// R9 Lane D: dedicated --user-bubble token warms the light-mode
|
||||||
// fill (the shared honey-wash read cold green-grey there).
|
// 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'
|
: msg.role === 'system'
|
||||||
? 'rounded-[12px] bg-[var(--surface-2)] px-3 py-2 text-[12px] italic text-[var(--text-muted)]'
|
? '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)]'
|
: '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();
|
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', () => {
|
it('keeps the empty-state mascot intrinsically sized before image decode', () => {
|
||||||
render({ messages: [] });
|
render({ messages: [] });
|
||||||
const emptyState = screen.getByText("Pick a workspace and Waggle's ready").closest('div');
|
const emptyState = screen.getByText("Pick a workspace and Waggle's ready").closest('div');
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ Baseline: commit `b20b138` of `git.os-dev.tech/oleg.m/waggle-os`.
|
|||||||
| UF-050 | The chat activity card always claims memory, web and files | Fixed | Web UI, chat |
|
| UF-050 | The chat activity card always claims memory, web and files | Fixed | Web UI, chat |
|
||||||
| UF-051 | The memory recall step looks unfinished after the answer | Fixed | Sidecar, chat, memory |
|
| UF-051 | The memory recall step looks unfinished after the answer | Fixed | Sidecar, chat, memory |
|
||||||
| UF-052 | Home offers the same workspace twice | Fixed | Web UI |
|
| UF-052 | Home offers the same workspace twice | Fixed | Web UI |
|
||||||
|
| UF-053 | The user's chat bubble is squared on the wrong corner | Fixed | Web UI, chat |
|
||||||
|
|
||||||
## Entries
|
## Entries
|
||||||
|
|
||||||
@@ -525,3 +526,12 @@ Entries UF-010 to UF-019 come from the UI audit `anti-slop/audit-001-2026-10-14.
|
|||||||
- Cause: the list renders every recent workspace, including the one Start here already features.
|
- Cause: the list renders every recent workspace, including the one Start here already features.
|
||||||
- What we did: the list leaves out the Start here workspace and disappears when nothing else is left. Tests cover both cases.
|
- What we did: the list leaves out the Start here workspace and disappears when nothing else is left. Tests cover both cases.
|
||||||
- Recommendation: apply the same change in the main project.
|
- Recommendation: apply the same change in the main project.
|
||||||
|
|
||||||
|
### UF-053. The user's chat bubble is squared on the wrong corner
|
||||||
|
- Status: Fixed
|
||||||
|
- Found: 2026-10-27
|
||||||
|
- Where: at commit `b20b138`, `apps/web/src/components/os/apps/ChatApp.tsx:1261` (the user message class, `rounded-[4px_14px_14px_14px]`)
|
||||||
|
- Symptom: the user's messages sit on the right, but their one square corner is the top left, so the bubble points away from the sender.
|
||||||
|
- Cause: the four-value radius puts the 4px corner first, which is the top left.
|
||||||
|
- What we did: the radius is `rounded-[14px_4px_14px_14px]`, so the square corner is the top right. A chat test checks it.
|
||||||
|
- Recommendation: apply the same change in the main project.
|
||||||
|
|||||||
Reference in New Issue
Block a user