Skip to content

Commit

Permalink
fixed comment section unable to scroll down
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank-Gu-81 committed Jan 23, 2025
1 parent 1292eec commit 35dfc77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/Comment/Comment.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
margin-top: 20px;
}

.comment-container {
.post-container {
margin-top: 80px;
}

.comment-container {
margin-bottom: 80px;
}
4 changes: 2 additions & 2 deletions src/components/Comment/Comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Comment({ userName, profilePic }) {
return (
<div>
<AppBar />
<Container className="comment-container" maxWidth="sm">
<Container className="post-container" maxWidth="sm">
{/* <Typography variant="h5" gutterBottom>
Comments for {post_id}
</Typography> */}
Expand All @@ -99,7 +99,7 @@ function Comment({ userName, profilePic }) {
</Container>

{/* Comment Section */}
<Container maxWidth="sm">
<Container className="comment-container" maxWidth="sm">

<Divider style={{ margin: "20px 0" }} />

Expand Down

0 comments on commit 35dfc77

Please sign in to comment.