Skip to content

Commit

Permalink
make navigation bar sticky in project form pages
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Feb 5, 2025
1 parent 5977275 commit 7e05dfa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function RouteComponent() {

return (
<div>
<nav className="h-24 border-b border-gray-300">
<nav className="fixed top-0 left-0 right-0 z-50 bg-white h-24 border-b border-gray-300">
<ul className="flex items-center pl-4 h-full">
<li>
<Link to="/admin/dashboard">
Expand All @@ -201,6 +201,7 @@ function RouteComponent() {
</li>
</ul>
</nav>
<div className="h-24"></div>
<SectionedLayout
asideTitle="Submit a project"
linkContainerClassnames="top-36"
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/user/_auth/project/$projectId.form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ function ProjectFormPage() {

return (
<div>
<nav className="h-24 border-b border-gray-300">
<nav className="fixed top-0 left-0 right-0 z-50 bg-white h-24 border-b border-gray-300">
<ul className="flex items-center pl-4 h-full">
<li>
<Link to="/user/dashboard">
Expand All @@ -525,6 +525,7 @@ function ProjectFormPage() {
</li>
</ul>
</nav>
<div className="h-24"></div>
<SectionedLayout
asideTitle="Submit a project"
linkContainerClassnames="top-36"
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/user/_auth/project/$projectId.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function RouteComponent() {

return (
<div>
<nav className="h-24 border-b border-gray-300">
<nav className="fixed top-0 left-0 right-0 z-50 bg-white h-24 border-b border-gray-300">
<ul className="flex items-center pl-4 h-full">
<li>
<Link to="/user/dashboard">
Expand All @@ -196,6 +196,7 @@ function RouteComponent() {
</li>
</ul>
</nav>
<div className="h-24"></div>
<SectionedLayout
asideTitle="Submit a project"
linkContainerClassnames="top-36"
Expand Down

0 comments on commit 7e05dfa

Please sign in to comment.