Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

highlight selected log

Vasek Mlejnsky5f5558b6fbf5
diff --git a/components/AgentContext.tsx b/components/AgentContext.tsx
index 12f37529a..192479f79 100644
--- a/components/AgentContext.tsx
+++ b/components/AgentContext.tsx
@@ -57,7 +57,14 @@ function AgentContext({
{context.map((ctx, idx) => (
<>
<div key={idx} className="flex items-center space-x-2 ">
- <span className="font-bold text-sm text-[#55618C] capitalize min-w-[72px]">{ctx.role}</span>
+ <span className={clsx(
+ 'font-bold text-sm capitalize min-w-[72px]',
+ opened === idx && 'text-[#6366F1]',
+ opened !== idx && 'text-[#55618C]',
+ )}
+ >
+ {ctx.role}
+ </span>
<span
className={clsx(
'text-sm text-gray-100 max-w-full truncate p-2 hover:bg-[#1F2437] transition-all rounded-md cursor-pointer w-full',