Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(agent-status): truncate status text instead of breaking per-character on narrow screens (#276)

Robert Brennanbae8e29f04b4
diff --git a/src/components/features/controls/agent-status.tsx b/src/components/features/controls/agent-status.tsx
index 6c4abbba5d..ef20ecd94e 100644
--- a/src/components/features/controls/agent-status.tsx
+++ b/src/components/features/controls/agent-status.tsx
@@ -86,7 +86,7 @@ export function AgentStatus({
return (
<div className={cn("flex items-center gap-1 min-w-0", className)}>
<span
- className="text-[11px] text-white font-normal leading-5 flex-1 min-w-0 max-w-full whitespace-normal break-words"
+ className="text-[11px] text-white font-normal leading-5 min-w-0 max-w-full truncate"
title={t(statusCode)}
>
{t(statusCode)}