Skip to content

Commit

Permalink
css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vanesssalai committed Jul 8, 2024
1 parent b389d3b commit 936a8bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/pages/forumpost/ForumPost.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,14 @@
border-left: 1px solid rgb(194, 194, 194);
margin: 16px;
padding: 8px;

.comment-header {
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
justify-content: space-between;
}

.comment-profile {
display: flex;
Expand Down
13 changes: 9 additions & 4 deletions src/pages/forumpost/ForumPost.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,14 @@ const Comment = ({ comment, postID, onReply, currentUser }) => {
return (
<div className="comment">
{user && (
<div className='comment-profile' onClick={handleUsernameClick}>
<img className='comment-profilepic'>{user.profilePic}</img>
<p className="comment-username">{user.username}</p>
<div className='comment-header'>
<div className='comment-profile' onClick={handleUsernameClick}>
<img className='comment-profilepic'>{user.profilePic}</img>
<p className="comment-username">{user.username}</p>
</div>
<div className='comment-time'>
<p>{timeSincePost(post.postDate)}</p>
</div>
</div>
)}
<p className='comment-content'>{comment.content}</p>
Expand Down Expand Up @@ -374,7 +379,7 @@ function ForumPostPage() {
return (
<Format content={
<div className='forum-post-page'>
<div className='forum-post'>
<div className='forum-post'>
{user && (
<div className='forum-user-container'>
<div className='forum-user-details'>
Expand Down

0 comments on commit 936a8bc

Please sign in to comment.