Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Move collapse chevron to right side of agent step rows

Abi Raja30a968073f43
diff --git a/frontend/src/components/agent/AgentActivity.tsx b/frontend/src/components/agent/AgentActivity.tsx
index ab56495e..9e5b4132 100644
--- a/frontend/src/components/agent/AgentActivity.tsx
+++ b/frontend/src/components/agent/AgentActivity.tsx
@@ -378,18 +378,18 @@ function AgentEventCard({
onClick={() => setExpanded((prev) => !prev)}
className="w-full flex items-center gap-2 py-1.5 text-left text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300"
>
- {isExpanded ? (
- <BsChevronDown className="text-xs shrink-0" />
- ) : (
- <BsChevronRight className="text-xs shrink-0" />
- )}
{getEventIcon(event.type, event.toolName)}
- <span className="text-sm">
+ <span className="text-sm flex-1">
{getEventTitle(event)}
</span>
{event.status === "running" && (
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse shrink-0" />
)}
+ {isExpanded ? (
+ <BsChevronDown className="text-xs shrink-0" />
+ ) : (
+ <BsChevronRight className="text-xs shrink-0" />
+ )}
</button>
{isExpanded && (
<div className="pl-7 pb-2">