[Cloud Posture] reduce column width to see rule name (#154507)

## Summary
This is part of a Quick Wins
[ticket](https://github.com/elastic/security-team/issues/6291)

This PR should reduces column width for CIS Section, Rule Number, and
Resource Type
<img width="1442" alt="image"
src="https://user-images.githubusercontent.com/17135495/230248597-7a2cd0a0-b557-4aee-9e4f-0af815864eea.png">
This commit is contained in:
Lola 2023-04-09 21:52:39 -04:00 committed by GitHub
parent 43dc991b67
commit bf20a061cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ const baseColumns = [
/>
),
truncateText: true,
width: '150px',
width: '180px',
sortable: true,
render: (filename: string) => (
<EuiToolTip position="top" content={filename} anchorClassName="eui-textTruncate">
@ -94,7 +94,7 @@ const baseColumns = [
name: i18n.translate('xpack.csp.findings.findingsTable.findingsTableColumn.resultColumnLabel', {
defaultMessage: 'Result',
}),
width: '120px',
width: '80px',
sortable: true,
render: (type: PropsOf<typeof CspEvaluationBadge>['type']) => (
<CspEvaluationBadge type={type} />
@ -118,6 +118,7 @@ const baseColumns = [
),
sortable: true,
truncateText: true,
width: '12%',
render: (name: FindingsByResourcePage['resource.name']) => {
if (!name) return;
@ -175,6 +176,7 @@ const baseColumns = [
'xpack.csp.findings.findingsTable.findingsTableColumn.ruleSectionColumnLabel',
{ defaultMessage: 'CIS Section' }
),
width: '150px',
sortable: true,
truncateText: true,
render: (section: string) => (