Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make navbar sticky
  • Loading branch information
Rakshit Sinha committed Sep 18, 2024
commit 9373ca8cdec97b130401304e2972699c5fbd8a50
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