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(goal): head the task result panel with the task name (#19580)

Arvin Xue404b791d04d
diff --git a/src/features/Portal/TaskResult/Title.tsx b/src/features/Portal/TaskResult/Title.tsx
index e661d7bdf69..670da797553 100644
--- a/src/features/Portal/TaskResult/Title.tsx
+++ b/src/features/Portal/TaskResult/Title.tsx
@@ -41,20 +41,23 @@ const Title = memo(() => {
</Flexbox>
);
+ // The panel is headed by the task itself: the generic "Task result" label
+ // only pushed the name aside. It stays as the placeholder until the task loads.
return (
<Flexbox horizontal align={'center'} flex={1} gap={8} style={{ minWidth: 0 }}>
- <Text fontSize={14} style={{ flexShrink: 0 }} weight={500}>
- {t('goalDetail.taskResult')}
- </Text>
- {(detail?.identifier || detail?.name) && (
- <Text
- className={oneLineEllipsis}
- fontSize={13}
- style={{ color: cssVar.colorTextSecondary, flex: '0 1 auto', minWidth: 0 }}
- >
- {[detail.identifier, detail.name].filter(Boolean).join(' · ')}
+ {detail?.identifier && (
+ <Text fontSize={13} style={{ color: cssVar.colorTextTertiary, flexShrink: 0 }}>
+ {detail.identifier}
</Text>
)}
+ <Text
+ className={oneLineEllipsis}
+ fontSize={14}
+ style={{ flex: '0 1 auto', minWidth: 0 }}
+ weight={500}
+ >
+ {detail?.name || t('goalDetail.taskResult')}
+ </Text>
<Actions />
</Flexbox>
);