Skip to content

Commit

Permalink
[Fleet] Fix missing space between integrations badges (#112448) (#112551
Browse files Browse the repository at this point in the history
)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Cristina Amico <[email protected]>
  • Loading branch information
kibanamachine and criamico authored Sep 20, 2021
1 parent 11d2162 commit 894bb60
Showing 1 changed file with 36 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,33 +84,42 @@ export const AgentPolicyPackageBadges: React.FunctionComponent<Props> = ({
<EuiSpacer size="s" />
</>
)}
{packages.map((pkg, idx) => {
return (
<EuiBadge
key={idx}
color="hollow"
isDisabled={excludeFleetServer && pkg.name === FLEET_SERVER_PACKAGE}
>
<EuiFlexGroup direction="row" gutterSize="xs" alignItems="center" responsive={false}>
<EuiFlexItem grow={false}>
<PackageIcon
packageName={pkg.name}
version={pkg.version}
tryApi={true}
style={
// when a custom SVG is used the logo is rendered with <img class="euiIcon euiIcon--small">
// this collides with some EuiText (+img) CSS from the EuiIcon component
// which makes the button large, wide, and poorly layed out
// override those styles until the bug is fixed or we find a better approach
{ margin: 'unset', width: '16px' }
}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>{pkg.title}</EuiFlexItem>
</EuiFlexGroup>
</EuiBadge>
);
})}
<EuiFlexGroup direction="row" gutterSize="xs" alignItems="center" wrap>
{packages.map((pkg, idx) => {
return (
<EuiFlexItem grow={false}>
<EuiBadge
key={idx}
color="hollow"
isDisabled={excludeFleetServer && pkg.name === FLEET_SERVER_PACKAGE}
>
<EuiFlexGroup
direction="row"
gutterSize="xs"
alignItems="center"
responsive={false}
>
<EuiFlexItem grow={false}>
<PackageIcon
packageName={pkg.name}
version={pkg.version}
tryApi={true}
style={
// when a custom SVG is used the logo is rendered with <img class="euiIcon euiIcon--small">
// this collides with some EuiText (+img) CSS from the EuiIcon component
// which makes the button large, wide, and poorly layed out
// override those styles until the bug is fixed or we find a better approach
{ margin: 'unset', width: '16px' }
}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>{pkg.title}</EuiFlexItem>
</EuiFlexGroup>
</EuiBadge>
</EuiFlexItem>
);
})}
</EuiFlexGroup>
{showFleetServerWarning && (
<>
<EuiSpacer size="s" />
Expand Down

0 comments on commit 894bb60

Please sign in to comment.