Skip to content

Commit 5580340

Browse files
committed
Panel styles
1 parent 55f5270 commit 5580340

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

x-pack/platform/plugins/shared/agent_builder_platform/public/attachment_types/skill_draft_attachment/skill_draft_attachment.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const SkillDraftCard: React.FC<SkillDraftCardProps> = ({ attachment }) => {
188188
</EuiFlexItem>
189189
{data.tool_ids.map((toolId) => (
190190
<EuiFlexItem grow={false} key={toolId}>
191-
<EuiBadge color="hollow">{toolId}</EuiBadge>
191+
<EuiBadge>{toolId}</EuiBadge>
192192
</EuiFlexItem>
193193
))}
194194
</EuiFlexGroup>
@@ -214,7 +214,7 @@ const SkillDraftCard: React.FC<SkillDraftCardProps> = ({ attachment }) => {
214214
</EuiFlexItem>
215215
{data.referenced_content?.map((ref) => (
216216
<EuiFlexItem grow={false} key={ref.relativePath}>
217-
<EuiBadge color="hollow">{ref.name}</EuiBadge>
217+
<EuiBadge>{ref.name}</EuiBadge>
218218
</EuiFlexItem>
219219
))}
220220
</EuiFlexGroup>
@@ -279,7 +279,16 @@ export const createSkillDraftAttachmentDefinition = ({
279279
getHeaderBadge: (attachment) => {
280280
const isCreated = Boolean(attachment.origin);
281281
const badge = getDraftBadge(isCreated);
282-
return <EuiBadge color={badge.color}>{badge.label}</EuiBadge>;
282+
return (
283+
<EuiFlexGroup gutterSize="xs" alignItems="center" responsive={false}>
284+
<EuiFlexItem grow={false}>
285+
<EuiBadge color="hollow">{attachment.data.id}</EuiBadge>
286+
</EuiFlexItem>
287+
<EuiFlexItem grow={false}>
288+
<EuiBadge color={badge.color}>{badge.label}</EuiBadge>
289+
</EuiFlexItem>
290+
</EuiFlexGroup>
291+
);
283292
},
284293
renderInlineContent: (props) => <SkillDraftInlineContent {...props} />,
285294
getActionButtons: ({ attachment, updateOrigin }) => {

0 commit comments

Comments
 (0)