Various small report improvements

This commit is contained in:
VakarisZ 2019-11-28 11:06:36 +02:00
parent 28bb6356c2
commit f5f0a60cb4
5 changed files with 17 additions and 4 deletions

View File

@ -20,7 +20,7 @@ class MatrixComponent extends React.Component {
}
let tech_type = this.state.schema.properties[type_key];
columns.push({
Header: () => (<a href={tech_type.link}>{tech_type.title}</a>),
Header: () => (<a href={tech_type.link} target="_blank">{tech_type.title}</a>),
id: type_key,
accessor: x => this.renderTechnique(x[tech_type.title]),
style: {'whiteSpace': 'unset'}

View File

@ -12,6 +12,7 @@ $black: #000000;
text-align: center;
width: 100%;
height: 100%;
cursor: pointer;
input {
display: none;
@ -39,6 +40,7 @@ $black: #000000;
background-color: $dark-green;
color: $light-grey;
fill: $light-grey;
cursor: default;
}
&.is-checked {
@ -127,7 +129,7 @@ $black: #000000;
}
.icon-mandatory {
color: $dark-green
color: $dark-green;
}
.icon-unchecked {

View File

@ -36,7 +36,8 @@
padding: 2em 2em 0 2em;
}
.ReactTable .rt-td{
white-space: pre-line !important;
.ReactTable .rt-td,.rt-resizable-header-content{
white-space: pre-line !important;
word-wrap: break-word;
}

View File

@ -18,3 +18,9 @@ $black: #3a3a3a;
background-color: $light-red !important;
color: $black;
}
.attack-matrix div.rt-td:hover {
transform: scale(1.08);
filter: brightness(110%);
}

View File

@ -9,3 +9,7 @@
.report-nav > li > a{
height: 50px !important;
}
.report-nav > li.active{
font-weight: bold;
}