Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 54ddfc1

Browse files
fixing mobile navigation
1 parent b600ba5 commit 54ddfc1

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

‎src/Algorithms/biDirectionalBfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function biDirectionalBfs(grid,start,finish) {
131131
// }
132132
// console.log(neighBk[i]);
133133
return [neighbors,neighBk[i],sur[j]];
134-
}
134+
}
135135
}
136136

137137
console.log(neighBk[i])

‎src/Components/HeaderComponent.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Header extends Component{
7070
          
7171

7272
<NavbarBrand className="ml-auto" href="/">
73-
<img src= {Img} height="70" alt="Algo-Visualizer" />
73+
<img src= {Img} height="55" alt="Algo-Visualizer" />
7474
</NavbarBrand>
7575

7676
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -100,12 +100,14 @@ class Header extends Component{
100100
</FormGroup>
101101
<button type="submit" value="submit" className="btn btn-outline-info sub-btn" >{`visualize ${this.state.algo !== 'null'? this.state.algo : '' }`} </button>
102102
</NavItem>
103-
104-
105103
</Form>
106104
<NavItem className="nav2">
107105
<button className="btn btn-primary btn-1" onClick={() => this.props.randomGrid()}>Random Grid</button>
106+
</NavItem>
107+
<NavItem className="nav2">
108108
<button className="btn btn-primary btn-2" onClick={() => this.props.randomWeight()}>Random Weight Grid</button>
109+
</NavItem>
110+
<NavItem className="nav2">
109111
<button className="btn btn-primary btn-2" onClick={() => this.props.clearGrid()}>Clear Grid</button>
110112
</NavItem>
111113
</Nav>

‎src/css/gridblock.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,16 @@
101101

102102
@keyframes visitedAnimation {
103103
0% {
104-
transform: scale(0.3);
104+
transform: scale(0.1);
105105
background-color: rgba(0, 0, 66, 0.75);
106106
border-radius: 100%;
107107
}
108108

109+
25% {
110+
transform: scale(0.5);
111+
background-color: rgba(117, 160, 216, 0.75);
112+
}
113+
109114
50% {
110115
background-color: rgba(17, 104, 217, 0.75);
111116
}
@@ -236,11 +241,6 @@ li.nav-item {
236241
margin-top: 60px;
237242
}
238243

239-
.nav2 {
240-
display: inline-block;
241-
padding-top: 6px;
242-
}
243-
244244
@keyframes specialNodes {
245245
0% {
246246
transform: scale(0.3);
@@ -257,3 +257,9 @@ li.nav-item {
257257
/*background-color: darkslategrey;*/
258258
}
259259
}
260+
261+
@media screen and (max-width: 767px) {
262+
.nav2 {
263+
margin-left: 6px;
264+
}
265+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /