Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: task breadcrumb title truncation (#14460)

AmAzing-cc506c036d30
diff --git a/src/features/AgentTasks/shared/Breadcrumb.tsx b/src/features/AgentTasks/shared/Breadcrumb.tsx
index b4267a66dee..d0911926de6 100644
--- a/src/features/AgentTasks/shared/Breadcrumb.tsx
+++ b/src/features/AgentTasks/shared/Breadcrumb.tsx
@@ -60,17 +60,28 @@ const Breadcrumb = memo<BreadcrumbProps>(({ taskId }) => {
alignItems: 'center',
display: 'inline-flex',
gap: 6,
- lineHeight: 1,
+ maxWidth: '100%',
minWidth: 0,
- overflow: 'hidden',
}}
>
{taskIdentifier && (
- <Text color={'inherit'} style={{ flexShrink: 0 }} type={'secondary'} weight={500}>
+ <Text
+ as={'span'}
+ color={'inherit'}
+ style={{ flexShrink: 0 }}
+ type={'secondary'}
+ weight={500}
+ >
{taskIdentifier}
</Text>
)}
- <Text ellipsis color={'inherit'} style={{ maxWidth: 240 }} weight={500}>
+ <Text
+ ellipsis
+ as={'span'}
+ color={'inherit'}
+ style={{ flex: '1 1 auto', maxWidth: 240, minWidth: 0 }}
+ weight={500}
+ >
{taskTitle || taskId}
</Text>
</span>