Skip to content

Commit

Permalink
Make navbar sticky (#332)
Browse files Browse the repository at this point in the history
Co-authored-by: Rakshit Sinha <[email protected]>
  • Loading branch information
sinharaksh1t and Rakshit Sinha authored Sep 19, 2024
1 parent 48c9580 commit ce00350
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Navigation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import DarkMode from '../Dark-Mode';

const Navigation = () => {
return (
<Navbar className="navbar">
<Navbar className="navbar sticky">
<Container>
<NavbarBrand
onClick={() =>
Expand Down
6 changes: 6 additions & 0 deletions src/components/Navigation/styles.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.navbar.sticky {
position: sticky;
top: 0;
z-index: 1;
}

body.light-mode .navbar {
background-color: #f7f8f9;
color: #000000;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ body.dark-mode .modal-content {
> tr th {
background: white;
position: sticky;
top: 0;
top: 50px;
text-wrap: nowrap;
}
}
Expand Down

0 comments on commit ce00350

Please sign in to comment.