Skip to content

Commit e44d0b2

Browse files
Increase light mode contrast for user message bubbles
- Use the accent background for user message bubbles - Update the timeline test to verify the new styling
1 parent 5d17354 commit e44d0b2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/components/chat/MessagesTimeline.test.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ describe("MessagesTimeline", () => {
434434

435435
expect(markup).not.toContain("Show full message");
436436
expect(markup).toContain('data-user-message-collapsible="false"');
437+
expect(markup).toContain("rounded-2xl bg-accent p-3");
437438
});
438439

439440
it("renders inline terminal labels with the composer chip UI", () => {

‎apps/web/src/components/chat/MessagesTimeline.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"
890890

891891
return (
892892
<div className="group flex flex-col items-end gap-1">
893-
<div className="relative max-w-[80%] rounded-2xl bg-secondary p-3">
893+
<div className="relative max-w-[80%] rounded-2xl bg-accent p-3">
894894
{regularImages.length > 0 && (
895895
<div className="mb-2 grid max-w-[420px] grid-cols-2 gap-2">
896896
{regularImages.map((image: NonNullable<TimelineMessage["attachments"]>[number]) => (

0 commit comments

Comments
 (0)