Skip to content

Commit 11d2067

Browse files
committed
[dashboard] added a bit of styling
1 parent 2ac068a commit 11d2067

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

dashboard/src/App.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@ import './App.css';
33
import 'bootstrap/dist/css/bootstrap.min.css';
44
import Dashboard from './components/Dashboard';
55
import Header from './components/Header';
6-
import { Container } from 'react-bootstrap';
76

87
function App() {
98
return (
109
<>
1110
<Header />
12-
<Container>
13-
<Dashboard />
14-
</Container>
11+
<Dashboard />
1512
</>
1613
);
1714
}

dashboard/src/components/ScanList.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@ const ScanList = ({ list }) => {
1717
<>
1818
<h2>Security Scan Results</h2>
1919
<Accordion>
20+
<Card bg="primary" text="white">
21+
<Card.Header>
22+
<Row>
23+
<Col sm={3}>Name</Col>
24+
<Col sm={3}>Status</Col>
25+
<Col sm={5}>Timestamp</Col>
26+
</Row>
27+
</Card.Header>
28+
</Card>
2029
{list.map((scan, index) => (
2130
<Card key={index}>
22-
<Accordion.Toggle as={Card.Header} eventKey={index}>
31+
<Accordion.Toggle style={{ cursor: 'pointer' }} as={Card.Header} eventKey={index}>
2332
<Row>
2433
<Col sm={3}>{scan.repositoryName}</Col>
2534
<Col sm={3}>{scan.status}</Col>

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ services:
2525
- /app/node_modules
2626
- ./dashboard:/app
2727
postgres:
28+
restart: always
2829
container_name: postgres
2930
image: 'postgres:latest'
3031
ports:

0 commit comments

Comments
 (0)