From 229dde1920a0860dd727d9fd1d57a4766c35ace7 Mon Sep 17 00:00:00 2001 From: animehart Date: Tue, 15 Oct 2024 10:00:00 -0700 Subject: [PATCH] Contextual Flyout small UI updates --- .../vulnerabilities_findings_details_table.tsx | 6 +++--- .../cloud_security_posture/components/entity_insight.tsx | 4 ++-- .../misconfiguration/misconfiguration_preview.tsx | 9 ++++----- .../vulnerabilities/vulnerabilities_preview.tsx | 9 ++++----- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/csp_details/vulnerabilities_findings_details_table.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/csp_details/vulnerabilities_findings_details_table.tsx index 9e3e4b140a9ba..25d930002f63d 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/csp_details/vulnerabilities_findings_details_table.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/csp_details/vulnerabilities_findings_details_table.tsx @@ -148,7 +148,7 @@ export const VulnerabilitiesFindingsDetailsTable = memo(({ queryName }: { queryN 'xpack.securitySolution.flyout.left.insights.vulnerability.table.ruleColumnName', { defaultMessage: 'CVSS' } ), - width: '12.5%', + width: '15%', }, { field: 'vulnerability', @@ -165,7 +165,7 @@ export const VulnerabilitiesFindingsDetailsTable = memo(({ queryName }: { queryN 'xpack.securitySolution.flyout.left.insights.vulnerability.table.ruleColumnName', { defaultMessage: 'Severity' } ), - width: '12.5%', + width: '20%', }, { field: 'vulnerability', @@ -176,7 +176,7 @@ export const VulnerabilitiesFindingsDetailsTable = memo(({ queryName }: { queryN 'xpack.securitySolution.flyout.left.insights.vulnerability.table.ruleColumnName', { defaultMessage: 'Package' } ), - width: '50%', + width: '40%', }, ]; diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx index 7d9027c25a9e0..eee9af194ca37 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/entity_insight.tsx @@ -64,14 +64,14 @@ export const EntityInsight = ({ insightContent.push( <> - + ); if (isVulnerabilitiesFindingForHost && hasVulnerabilitiesFindings) insightContent.push( <> - + ); return ( diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/misconfiguration/misconfiguration_preview.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/misconfiguration/misconfiguration_preview.tsx index a372ca4755fd8..247e06ad24032 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/misconfiguration/misconfiguration_preview.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/misconfiguration/misconfiguration_preview.tsx @@ -79,12 +79,12 @@ const MisconfigurationPreviewScore = ({ -

{`${Math.round((passedFindings / (passedFindings + failedFindings)) * 100)}%`}

+

{`${Math.round((passedFindings / (passedFindings + failedFindings)) * 100)}%`}

- + ), link: hasMisconfigurationFindings ? link : undefined, }} diff --git a/x-pack/plugins/security_solution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_preview.tsx b/x-pack/plugins/security_solution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_preview.tsx index eef778b1e6f0c..93e81b427a536 100644 --- a/x-pack/plugins/security_solution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_preview.tsx +++ b/x-pack/plugins/security_solution/public/cloud_security_posture/components/vulnerabilities/vulnerabilities_preview.tsx @@ -43,12 +43,12 @@ const VulnerabilitiesCount = ({ -

{vulnerabilitiesTotal}

+

{vulnerabilitiesTotal}

- + ), link, }}