Skip to content

Commit

Permalink
Fixed Responsive agents evolution (#4130)
Browse files Browse the repository at this point in the history
* Fixed Responsive agents evolution

* Updated CHANGELOG

* Fixed some styles

* Restored package.json

* fix: Removed PR entry from changelog. This PR fixed a wrong conflict resolution in a previous merge

Co-authored-by: Antonio David Gutiérrez <[email protected]>
  • Loading branch information
Machi3mfl and Desvelao authored May 4, 2022
1 parent 5ca89cc commit 7dce036
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions public/controllers/agent/components/agents-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,8 @@ export const AgentsPreview = compose(
</EuiCard>
</EuiFlexItem>
{this.totalAgents > 0 && (
<EuiFlexItem>
<EuiFlexItem grow={false} className="agents-details-card">
<EuiCard title description betaBadgeLabel="Details">
<EuiFlexGroup>
<EuiFlexItem>
{this.summary && (
<EuiFlexGroup className="group-details">
<EuiFlexItem>
Expand Down Expand Up @@ -279,6 +277,7 @@ export const AgentsPreview = compose(
className="white-space-nowrap"
/>
</EuiFlexItem>

<EuiFlexItem>
<EuiStat
title={`${this.agentsCoverity.toFixed(2)}%`}
Expand All @@ -291,9 +290,9 @@ export const AgentsPreview = compose(
)}
<EuiFlexGroup className="mt-0">
{this.lastAgent && (
<EuiFlexItem>
<EuiFlexItem className="agents-link-item">
<EuiStat
className="euiStatLink"
className="euiStatLink last-agents-link"
title={
<EuiToolTip position="top" content="View agent details">
<a onClick={() => this.showLastAgent()}>
Expand All @@ -304,12 +303,11 @@ export const AgentsPreview = compose(
titleSize="s"
description="Last registered agent"
titleColor="primary"
className="pb-12 white-space-nowrap"
/>
</EuiFlexItem>
)}
{this.mostActiveAgent && (
<EuiFlexItem>
<EuiFlexItem className="agents-link-item">
<EuiStat
className={this.mostActiveAgent.name ? 'euiStatLink' : ''}
title={
Expand All @@ -319,16 +317,14 @@ export const AgentsPreview = compose(
</a>
</EuiToolTip>
}
className="white-space-nowrap"
className="last-agents-link"
titleSize="s"
description="Most active agent"
titleColor="primary"
/>
</EuiFlexItem>
)}
</EuiFlexGroup>
</EuiFlexItem>
</EuiFlexGroup>
</EuiCard>
</EuiFlexItem>
)}
Expand Down

0 comments on commit 7dce036

Please sign in to comment.