diff --git a/src/components/Account/Account.css b/src/components/Account/Account.css index 689db84..1087f74 100644 --- a/src/components/Account/Account.css +++ b/src/components/Account/Account.css @@ -1,3 +1,11 @@ .account-details { margin-bottom: 20px; +} + +.account-content { + text-align: center; + padding-top: 20px; + height: calc(100vh - 56px - 64px); /* This is the height of the viewport minus the height of the app bar and the bottom navigation bar */ + margin-top: 4rem; + margin-bottom: 6rem; } \ No newline at end of file diff --git a/src/components/Account/Account.jsx b/src/components/Account/Account.jsx index 82c7213..94af26c 100644 --- a/src/components/Account/Account.jsx +++ b/src/components/Account/Account.jsx @@ -23,7 +23,7 @@ function Account({ userName, userEmail, profilePic }) { - - } component={Link} to="/feed" /> - } component={Link} to="/public" /> - - - - - - { filteredposts.length === 0 ? - (

No results found...

) : - (filteredposts - .slice() - .sort((a, b) => b.date.seconds - a.date.seconds).map((post) => -
- -
) - ) - } -
-
+ + + } component={Link} to="/feed" /> + } component={Link} to="/public" /> + + + + + { filteredposts.length === 0 ? + (

No results found...

) : + (filteredposts + .slice() + .sort((a, b) => b.date.seconds - a.date.seconds).map((post) => +
+ +
) + ) + } +
+
diff --git a/src/components/NavigationBar/NavigationBar.css b/src/components/NavigationBar/NavigationBar.css index c12574d..c0079cc 100644 --- a/src/components/NavigationBar/NavigationBar.css +++ b/src/components/NavigationBar/NavigationBar.css @@ -1,6 +1,8 @@ .nav-bar { background-color: #f5f5f5 !important; - position: sticky; + position: fixed; + left: 0; + right: 0; bottom: 0; width: 100%; } \ No newline at end of file diff --git a/src/components/Submission/Submission.css b/src/components/Submission/Submission.css index acccd26..1c4ccab 100644 --- a/src/components/Submission/Submission.css +++ b/src/components/Submission/Submission.css @@ -1,6 +1,7 @@ -.submission-page { - padding: 3em; - height: 100vh; +.submission-content { + height: calc(100vh - 56px - 64px); + margin-top: 6rem; + margin-bottom: 6rem; } #rating { diff --git a/src/components/Submission/Submission.jsx b/src/components/Submission/Submission.jsx index 91bfdff..e83cedd 100644 --- a/src/components/Submission/Submission.jsx +++ b/src/components/Submission/Submission.jsx @@ -59,7 +59,7 @@ function Submission({ userName }) {
- + setTitle(e.target.value)} /> setCourse(e.target.value)} />