Skip to content

Commit

Permalink
style: fix overflow of comment in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 31, 2024
1 parent 581f846 commit 28e97c8
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions src/components/comments/ViewComment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,26 @@ export const InnerViewComment: FC<Props> = props => {
<CommentBody comment={asCommentData(comment)} />
)}
</div>
<div className='d-flex align-items-center GapSmall mt-1.5'>
<SuperLike
isComment
key={`voters-of-comments-${id}`}
className='!FontTiny'
iconClassName='!FontSmall'
post={commentStruct}
/>
<Button
key={`reply-comment-${id}`}
className='p-0'
style={{ border: 'none', boxShadow: 'none', background: 'transparent' }}
onClick={() => setShowReplyForm(true)}
>
<span className='d-flex align-items-center ColorMuted'>
<IconWithLabel icon={<TbMessageCircle2 className='FontNormal' />} label='Reply' />
</span>
</Button>
<div className='d-flex align-items-center mt-1.5' style={{ flexWrap: 'wrap-reverse' }}>
<div className='d-flex align-items-center GapSmall mr-2'>
<SuperLike
isComment
key={`voters-of-comments-${id}`}
className='!FontTiny'
iconClassName='!FontSmall'
post={commentStruct}
/>
<Button
key={`reply-comment-${id}`}
className='p-0'
style={{ border: 'none', boxShadow: 'none', background: 'transparent' }}
onClick={() => setShowReplyForm(true)}
>
<span className='d-flex align-items-center ColorMuted'>
<IconWithLabel icon={<TbMessageCircle2 className='FontNormal' />} label='Reply' />
</span>
</Button>
</div>
<PostRewardStat postId={comment.id} style={{ marginLeft: 'auto' }} />
</div>
<div className='mt-1.5 d-flex flex-column'>
Expand Down

0 comments on commit 28e97c8

Please sign in to comment.