Skip to content

Commit

Permalink
feat: Adjust margins (#68)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
danielpacak committed Oct 18, 2021
1 parent b78d556 commit 9382df7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
21 changes: 14 additions & 7 deletions src/ciskubebenchreports/cisresults-list.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
.CISResultsList {

.TableCell {
&.number {
text-align: right;
flex-grow: 0.1;
}
.CISResultsTable {

margin-left: -24px;
margin-right: -24px;

&.status {
flex-grow: 0.2;
.TableCell {
&.number {
text-align: right;
flex-grow: 0.1;
}

&.status {
flex-grow: 0.2;
}
}

}

}
2 changes: 1 addition & 1 deletion src/ciskubebenchreports/cisresults-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class CISResultsList extends React.Component<Props> {
return (
<div className="CISResultsList flex column">
<DrawerTitle title={title}/>
<Table selectable scrollable={false} className="box grow">
<Table selectable scrollable={false} className="CISResultsTable box grow">
<TableHead sticky={false}>
<TableCell className="number">Number</TableCell>
<TableCell className="description">Description</TableCell>
Expand Down
4 changes: 3 additions & 1 deletion src/kubehunterreports/details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
}
}

.VulnerabilityList {
.VulnerabilityTable {
margin-left: -24px;
margin-right: -24px;

.TableCell {
&.vulnerabilityID {
Expand Down
4 changes: 2 additions & 2 deletions src/kubehunterreports/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class KubeHunterReportDetails extends React.Component<KubeHunterReportDet

<DrawerTitle title={"Vulnerabilities"}/>

<div className="VulnerabilityList flex column">
<Table className="box grow" selectable scrollable={false}
<div className="flex column">
<Table className="VulnerabilityTable box grow" selectable scrollable={false}
tableId="kubeHunterVulnerabilitiesTable"
virtual={virtual}
items={vulnerabilities}
Expand Down
4 changes: 4 additions & 0 deletions src/vulnerabilityreports/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ interface Props {
}

const Wrapper = styled.div`
.Table {
margin-left: -24px;
margin-right: -24px;
}
.Table.virtual {
height: 500px;
Expand Down

0 comments on commit 9382df7

Please sign in to comment.