mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
improve style
This commit is contained in:
parent
47d0ec5b5f
commit
5d46387b7d
@ -150,13 +150,22 @@ export default (props) => {
|
||||
return <antd.Empty />
|
||||
}
|
||||
|
||||
return comments.map((comment) => {
|
||||
return <CommentCard
|
||||
data={comment}
|
||||
onClickDelete={handleCommentDelete}
|
||||
self={app.cores.permissions.checkUserIdIsSelf(comment.user._id)}
|
||||
return <>
|
||||
{
|
||||
comments.map((comment) => {
|
||||
return <CommentCard
|
||||
data={comment}
|
||||
onClickDelete={handleCommentDelete}
|
||||
self={app.cores.permissions.checkUserIdIsSelf(comment.user._id)}
|
||||
/>
|
||||
})
|
||||
}
|
||||
<antd.Result
|
||||
status="info"
|
||||
title="This is the end"
|
||||
subTitle="There are no more comments"
|
||||
/>
|
||||
})
|
||||
</>
|
||||
}
|
||||
|
||||
return <div
|
||||
@ -168,19 +177,13 @@ export default (props) => {
|
||||
}
|
||||
)}
|
||||
>
|
||||
<div className="header">
|
||||
<h3>
|
||||
<Icons.MessageSquare /> Comments
|
||||
</h3>
|
||||
</div>
|
||||
<CommentCreator
|
||||
onSubmit={handleCommentSubmit}
|
||||
maxLength={PostModel.maxCommentLength}
|
||||
/>
|
||||
|
||||
{renderComments()}
|
||||
|
||||
<div className="commentCreatorWrapper">
|
||||
<CommentCreator
|
||||
onSubmit={handleCommentSubmit}
|
||||
maxLength={PostModel.maxCommentLength}
|
||||
/>
|
||||
</div>
|
||||
{
|
||||
renderComments()
|
||||
}
|
||||
</div>
|
||||
}
|
@ -2,8 +2,19 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
max-height: 30vh;
|
||||
width: 100%;
|
||||
|
||||
padding: 10px;
|
||||
|
||||
overflow-y: overlay;
|
||||
|
||||
border-radius: 12px;
|
||||
|
||||
color: var(--text-color);
|
||||
background-color: var(--background-color-primary);
|
||||
|
||||
transition: all 150ms ease-in-out;
|
||||
|
||||
h1,
|
||||
h2,
|
||||
@ -21,20 +32,13 @@
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
width: 100%;
|
||||
//height: 100%;
|
||||
|
||||
transition: all 150ms ease-in-out;
|
||||
gap: 10px;
|
||||
|
||||
.comment {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
margin-bottom: 10px;
|
||||
|
||||
background-color: var(--background-color-accent);
|
||||
|
||||
padding: 10px;
|
||||
@ -72,6 +76,9 @@
|
||||
font-size: 14px;
|
||||
color: var(--text-color);
|
||||
margin-left: 20px;
|
||||
|
||||
word-break: break-all;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.deleteBtn {
|
||||
@ -87,17 +94,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.commentCreatorWrapper {
|
||||
position: sticky;
|
||||
display: flex;
|
||||
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
|
||||
width: 100%;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user