Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep agent card headers readable on mobile

Adam Eivyb77c4db7f2a0
diff --git a/client/src/components/cos/tabs/AgentCard.jsx b/client/src/components/cos/tabs/AgentCard.jsx
index e90f9af1d2..574d3231b8 100644
--- a/client/src/components/cos/tabs/AgentCard.jsx
+++ b/client/src/components/cos/tabs/AgentCard.jsx
@@ -737,7 +737,8 @@ export default function AgentCard({ agent, onPause, onKill, onDelete, onResume,
<div className={completed ? "p-3 [overflow-wrap:anywhere]" : "p-4"}>
{/* Top row: Agent ID, badges, and actions */}
<div className="flex flex-wrap items-start justify-between gap-x-2 gap-y-1 mb-2">
- <div className="flex items-center gap-2 flex-wrap min-w-0 flex-1 basis-0 sm:basis-64">
+ {/* Wrap actions before they squeeze the identity into a narrow column. */}
+ <div className="flex items-center gap-2 flex-wrap min-w-0 flex-1 basis-64">
<Cpu size={16} aria-hidden="true" className={`shrink-0 ${inactive ? 'text-gray-500' : 'text-port-accent animate-pulse'}`} />
<span className="font-mono text-sm text-gray-400 truncate min-w-0">{agent.id}</span>
<button
@@ -753,12 +754,12 @@ export default function AgentCard({ agent, onPause, onKill, onDelete, onResume,
<Copy size={13} aria-hidden="true" />
</button>
{remote && peerName && (
- <span className="px-1.5 py-0.5 text-xs bg-port-accent/20 text-port-accent rounded shrink-0" title={`Remote agent on ${peerName}`}>
+ <span className="px-1.5 py-0.5 text-xs bg-port-accent/20 text-port-accent rounded min-w-0 max-w-full [overflow-wrap:anywhere]" title={`Remote agent on ${peerName}`}>
{peerName}
</span>
)}
{agent.metadata?.taskApp && (agent.metadata.taskAppName || agent.metadata.workspaceName) && !/^[0-9a-f]{8}-[0-9a-f]{4}-/.test(agent.metadata.taskAppName || agent.metadata.workspaceName) && (
- <span className="px-1.5 py-0.5 text-xs bg-cyan-500/20 text-cyan-400 rounded shrink-0" title={agent.metadata.workspacePath || agent.metadata.taskApp}>
+ <span className="px-1.5 py-0.5 text-xs bg-cyan-500/20 text-cyan-400 rounded min-w-0 max-w-full [overflow-wrap:anywhere]" title={agent.metadata.workspacePath || agent.metadata.taskApp}>
{agent.metadata.taskAppName || agent.metadata.workspaceName}
</span>
)}
@@ -820,7 +821,7 @@ export default function AgentCard({ agent, onPause, onKill, onDelete, onResume,
)}
</div>
{/* Actions - right side */}
- <div className="flex items-center gap-2 shrink-0 ml-0 sm:ml-auto">
+ <div className="flex flex-wrap items-center gap-2 min-w-0 max-w-full ml-0 sm:ml-auto">
{(output.length > 0 || inactive || !remote) && (
<button
onClick={() => setExpanded(!expanded)}
@@ -856,6 +857,7 @@ export default function AgentCard({ agent, onPause, onKill, onDelete, onResume,
confirmingKill ? (
<ConfirmButtonPair
prompt="Kill?"
+ className="flex-wrap max-w-full"
confirmText="Confirm"
cancelText="Cancel"
ariaLabel="Confirm kill agent"
@@ -892,6 +894,7 @@ export default function AgentCard({ agent, onPause, onKill, onDelete, onResume,
isConfirming(agent.id) ? (
<ConfirmButtonPair
prompt="Remove?"
+ className="flex-wrap max-w-full"
confirmText="Remove"
ariaLabel="Confirm remove agent"
onConfirm={() => confirmDelete(() => onDelete(agent.id))}
diff --git a/client/src/components/cos/tabs/AgentCard.test.jsx b/client/src/components/cos/tabs/AgentCard.test.jsx
index f5fd07bf74..711853cf0d 100644
--- a/client/src/components/cos/tabs/AgentCard.test.jsx
+++ b/client/src/components/cos/tabs/AgentCard.test.jsx
@@ -501,7 +501,7 @@ describe('AgentCard agent ID', () => {
});
describe('AgentCard responsive header', () => {
- it('keeps the identity and actions rails flexible on narrow cards', () => {
+ it('reserves readable identity width and lets actions wrap on narrow cards', () => {
const onDelete = vi.fn();
const onResume = vi.fn();
@@ -514,9 +514,9 @@ describe('AgentCard responsive header', () => {
const actions = screen.getByRole('button', { name: 'Show' }).parentElement;
const identity = actions.previousElementSibling;
- expect(identity).toHaveClass('basis-0', 'sm:basis-64');
+ expect(identity).toHaveClass('basis-64');
expect(screen.getByText(agent.id)).toHaveClass('min-w-0');
- expect(actions).toHaveClass('ml-0', 'sm:ml-auto');
+ expect(actions).toHaveClass('flex-wrap', 'max-w-full', 'ml-0', 'sm:ml-auto');
});
it('shows the effort used alongside the model on active and completed cards', () => {