fix(site/src/pages/AgentsPage/components/ProjectPage): put project chat cost beside the avatar (#32414)
Fixes DES-22270. On the project page, each chat row ended with the cost badge followed by the PR state icon. Chats without a PR render no icon, so their cost badge shifted right and the list read as a misaligned table. The row now shows the PR icon first and the cost beside the owner avatar, so cost badges line up against the avatar column on every row. | Before | After | |---|---| |  |  | Verified in the `ProjectChatsListView/Populated` story: before, cost badges ended at x=954 on rows with a PR and x=980 on rows without; after, all end at x=980 beside the avatar, with the PR icon to their left. > Generated by Coder Agents on behalf of @tracyjohnsonux.
This commit is contained in:
1 file changed
+1
-1
@@ -166,8 +166,8 @@ export const ProjectChatRow: React.FC<ProjectChatRowProps> = ({
|
||||
/>
|
||||
<span className="min-w-0 max-w-104 flex-1 truncate">{chat.title}</span>
|
||||
<span className="ml-auto flex shrink-0 items-center gap-3">
|
||||
{showCost && <ProjectChatCost chat={chat} />}
|
||||
<ChatPRStateIcon chat={chat} />
|
||||
{showCost && <ProjectChatCost chat={chat} />}
|
||||
</span>
|
||||
</Link>
|
||||
<div className="grid size-7 shrink-0 place-items-center *:[grid-area:1/1]">
|
||||
|
||||
Reference in new issue
Block a user