Skip to content

Commit fdc128d

Browse files
committed
made some small ui changes
1 parent e8d9374 commit fdc128d

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

.eslintcache

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/components/AppNavbar/AppNavbar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState } from 'react';
2+
import "./AppNavbar.scss";
23
import {
34
Collapse,
45
Navbar,
@@ -41,7 +42,6 @@ const AppNavbar = (props) => {
4142
<DropdownMenu right>
4243
<DropdownItem>
4344
<Button onClick={() => { props.handleDijkstra(); props.handleVisualization() }}>Dijkstra</Button>
44-
{/* <Button onClick={ props.handleDijkstra}>Dijkstra</Button> */}
4545
</DropdownItem>
4646
<DropdownItem>
4747
<Button onClick={() => { props.handleDFS(); props.handleVisualization() }}>DFS</Button>
@@ -72,7 +72,7 @@ const AppNavbar = (props) => {
7272
<NavbarText>
7373
<ProgressBar visitedNodes={props.visitedNodes} shortestNodes={props.shortestNodes} />
7474
</NavbarText>
75-
<NavbarText>
75+
<NavbarText className="clear-functions">
7676
<ButtonGroup>
7777
<Button id={"Tooltip-" + 0} onClick={props.handleClearPath}>Clear Path</Button>
7878
<Button id={"Tooltip-" + 1} onClick={props.handleClearGrid}>Clear Grid</Button>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.clear-functions {
2+
margin-right: 10px;
3+
}

src/components/ProgressBar/ProgressBar.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,4 @@ const ProgressBar = (props) => {
1818
);
1919
}
2020

21-
export default ProgressBar;
22-
23-
/*
24-
<NavbarText>
25-
visited nodes: {props.visitedNodes}
26-
<Progress value={props.visitedNodes/800} color="danger" />
27-
</NavbarText>
28-
<NavbarText>
29-
shortes path: {props.shortestNodes}
30-
<Progress value={props.shortestNodes/800} color="success" />
31-
</NavbarText>
32-
*/
21+
export default ProgressBar;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.visited-nodes-bar {
22
display: inline-block;
3-
margin-right: 5px;
3+
margin-right: 10px;
44
}
55

66
.shortest-nodes-bar {
77
display: inline-block;
8-
margin-right: 5px;
8+
margin-right: 15px;
99
}

0 commit comments

Comments
 (0)