mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Little adjustment to dropdown placement and tiny tweaks
This commit is contained in:
parent
af56ecf5ef
commit
8aebf187f9
1 changed files with 3 additions and 4 deletions
|
@ -25,11 +25,10 @@ class Comment extends React.Component {
|
|||
|
||||
render() {
|
||||
const comment = this.props.comment;
|
||||
|
||||
const html = {__html: comment.html};
|
||||
|
||||
return (
|
||||
<div className="flex mb-4">
|
||||
<div className="flex mb-6">
|
||||
<div>
|
||||
<div className="flex mb-2 space-x-4 justify-start items-center">
|
||||
<Avatar comment={comment} />
|
||||
|
@ -38,11 +37,11 @@ class Comment extends React.Component {
|
|||
<h6 className="text-xs text-neutral-400 font-sans">{formatRelativeTime(comment.created_at)}</h6>
|
||||
</div>
|
||||
</div>
|
||||
<div className="ml-14 mb-4 font-sans leading-normal dark:text-neutral-300">
|
||||
<div className="ml-14 mb-2 font-sans leading-normal dark:text-neutral-300">
|
||||
<p dangerouslySetInnerHTML={html} className="whitespace-pre-wrap"></p>
|
||||
</div>
|
||||
<div className="ml-14">
|
||||
<button onClick={this.toggleContextMenu}><MoreIcon className='gh-comments-icon gh-comments-icon-more' /></button>
|
||||
<button onClick={this.toggleContextMenu}><MoreIcon className='gh-comments-icon gh-comments-icon-more -m-[3px]' /></button>
|
||||
{this.state.isContextMenuOpen ? <CommentContextMenu comment={comment} /> : null}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue