mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[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:
parent
43dc991b67
commit
bf20a061cf
1 changed files with 4 additions and 2 deletions
|
@ -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) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue