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(create-platform-agent): wrap long version string in capability status (#15237)

LiJian14357a3f5199
diff --git a/src/features/CreatePlatformAgent/index.tsx b/src/features/CreatePlatformAgent/index.tsx
index c3092af7647..0ea93ab3bbc 100644
--- a/src/features/CreatePlatformAgent/index.tsx
+++ b/src/features/CreatePlatformAgent/index.tsx
@@ -283,9 +283,17 @@ const CreatePlatformAgentModal = memo<CreatePlatformAgentModalProps>(
if (!capabilityResult) return null;
if (capabilityResult.available) {
return (
- <Flexbox horizontal align="center" gap={4}>
- <Icon color="var(--ant-color-success)" icon={CheckCircle2} size={14} />
- <Tag color="success" style={{ marginInlineEnd: 0 }}>
+ <Flexbox horizontal align="flex-start" gap={4} style={{ flexWrap: 'wrap' }}>
+ <Icon
+ color="var(--ant-color-success)"
+ icon={CheckCircle2}
+ size={14}
+ style={{ marginTop: 2, flexShrink: 0 }}
+ />
+ <Tag
+ color="success"
+ style={{ marginInlineEnd: 0, whiteSpace: 'normal', wordBreak: 'break-word' }}
+ >
{capabilityResult.version ?? t('platformAgent.create.available')}
</Tag>
</Flexbox>