Skip to content

Commit f16de85

Browse files
committed
chore: update style
1 parent 078c14c commit f16de85

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/App.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565

6666
#comment-search-root .comment-item {
6767
display: flex;
68-
margin-top: 20px;
6968
}
7069

7170
#comment-search-root .comment-item-avatar {

src/App.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,19 @@ const CommentTree: React.FC<CommentProps> = ({ comments, sub = false }) => {
5757
return (
5858
<ul>
5959
{comments?.map((comment) => (
60-
<li key={comment.rpid} className='comment-item'>
60+
<li
61+
key={comment.rpid}
62+
className='comment-item'
63+
style={{
64+
marginTop: sub ? '10px' : '20px',
65+
}}
66+
>
6167
<img
6268
src={comment.member.avatar}
6369
className='comment-item-avatar'
6470
style={{
65-
width: sub ? '30px' : '40px',
66-
height: sub ? '30px' : '40px',
71+
width: sub ? '28px' : '40px',
72+
height: sub ? '28px' : '40px',
6773
}}
6874
/>
6975
<div

0 commit comments

Comments
 (0)