Skip to content

Commit edc58a7

Browse files
Found 2 minor bugs in navbar. #69 Resolved
1 parent 24d374b commit edc58a7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/common/Navbar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ export const Navbar = () => {
3535
list[2].classList.remove("active");
3636
}
3737

38-
if (location.pathname === "/games") {
38+
if (location.pathname.includes("/games")) {
3939
list[0].classList.remove("active");
4040
list[1].classList.add("active");
4141
list[2].classList.remove("active");
4242
}
4343

44-
if (location.pathname === "/activities") {
44+
if (location.pathname.includes("/activities")) {
4545
list[0].classList.remove("active");
4646
list[1].classList.remove("active");
4747
list[2].classList.add("active");

src/styles/components/common/Navbar.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
--clr: #ffffff;
1010
}
1111

12+
.navbar-wrapper {
13+
height: 110px;
14+
}
15+
1216
.navbar-root {
1317
margin-left: auto;
1418
margin-right: auto;

0 commit comments

Comments
 (0)