From 102e332b11dd2aac29193ef449eca7d562ffebdf Mon Sep 17 00:00:00 2001 From: Taylor Ho Date: Mon, 15 Jun 2026 00:40:26 -0700 Subject: [PATCH] fix(agents): right-align user transcript messages - Align prompt and standalone user transcript rows to the right edge of the activity panel. - Anchor non-agent avatars on the right using flex ordering while keeping assistant messages left-aligned. - Update related Tailwind shorthand classes surfaced during the targeted component check. --- .../agents/ui/AgentSessionTranscriptList.tsx | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/desktop/src/features/agents/ui/AgentSessionTranscriptList.tsx b/desktop/src/features/agents/ui/AgentSessionTranscriptList.tsx index 886d3a047..e8402fee6 100644 --- a/desktop/src/features/agents/ui/AgentSessionTranscriptList.tsx +++ b/desktop/src/features/agents/ui/AgentSessionTranscriptList.tsx @@ -294,24 +294,24 @@ function PromptUserMessage({ return (
-
+
-

{text}

+

{text}

{contextOpen && context ? ( ) : null} @@ -343,7 +343,7 @@ function PromptContextSections({ sections }: { sections: PromptSection[] }) { {section.title} -
+          
             {section.body.trim() || "No metadata."}
           
@@ -558,11 +558,12 @@ function MessageItem({ return (
) : null}
{isAssistant ? ( @@ -617,7 +618,7 @@ function MessageItem({ ) : ( <> -

{text}

+

{text}

)} @@ -641,7 +642,7 @@ function ThoughtItem({ className={cn( "group not-prose w-full rounded-md border border-transparent", compact ? "px-0" : "px-1", - isActive && "border-primary/15 bg-primary/[0.03] px-2 py-1", + isActive && "border-primary/15 bg-primary/3 px-2 py-1", )} data-testid="transcript-thought-item" > @@ -710,7 +711,7 @@ function MetadataItem({ {section.title} -
+            
               {section.body.trim() || "No metadata."}