forked from p15670423/monkey
Improved mitigations UI by aligning and padding text, removing unused header
This commit is contained in:
parent
57df099863
commit
2a8c510db5
|
@ -1,6 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactTable from 'react-table';
|
import ReactTable from 'react-table';
|
||||||
import marked from 'marked';
|
import marked from 'marked';
|
||||||
|
import '../../../styles/report/AttackReport.scss';
|
||||||
|
|
||||||
|
|
||||||
class MitigationsComponent extends React.Component {
|
class MitigationsComponent extends React.Component {
|
||||||
|
@ -28,6 +29,7 @@ class MitigationsComponent extends React.Component {
|
||||||
static getMitigationDescriptions(name) {
|
static getMitigationDescriptions(name) {
|
||||||
return ([{
|
return ([{
|
||||||
Header: name,
|
Header: name,
|
||||||
|
style: {'text-align': 'left'},
|
||||||
columns: [
|
columns: [
|
||||||
{ id: 'description',
|
{ id: 'description',
|
||||||
accessor: x => (<div dangerouslySetInnerHTML={{__html: x}} />),
|
accessor: x => (<div dangerouslySetInnerHTML={{__html: x}} />),
|
||||||
|
@ -46,6 +48,7 @@ class MitigationsComponent extends React.Component {
|
||||||
data={this.state.descriptions}
|
data={this.state.descriptions}
|
||||||
showPagination={false}
|
showPagination={false}
|
||||||
defaultPageSize={this.state.descriptions.length}
|
defaultPageSize={this.state.descriptions.length}
|
||||||
|
className={'attack-mitigation'}
|
||||||
/> : ''}
|
/> : ''}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -80,3 +80,16 @@
|
||||||
padding-right:5px;
|
padding-right:5px;
|
||||||
margin-bottom: 1px;
|
margin-bottom: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.attack-mitigation .rt-thead .rt-tr .rt-th {
|
||||||
|
text-align: left !important;
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attack-mitigation p {
|
||||||
|
padding-left: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attack-mitigation .rt-table>.-header {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue