diff options
author | 2019-06-25 12:43:38 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:55 +0300 | |
commit | 7302a067feff094af91608e190c71dcbeb967f13 (patch) | |
tree | c8d88bf32262e850bfe3c126caa10ecd77a44c8e /vnext | |
parent | 6d5e8905d6a676ca966fa32f6823ebc1409caabe (diff) |
Comment: fix reply button position
Diffstat (limited to 'vnext')
-rw-r--r-- | vnext/src/ui/Thread.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index 50155f8c..b5cc1880 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -57,26 +57,6 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC )} </div> </Avatar> - <div className="msg-links"> - { - visitor.uid > 0 ? ( - <> - {active === msg.rid || <span style={linkStyle} onClick={() => setActive(msg.rid)}>Reply</span>} - { - visitor.uid == msg.user.uid && - <> - <span> · </span> - <span style={linkStyle} onClick={() => onStartEditing(msg)}>Edit</span> - </> - } - </> - ) : ( - <> - <span> · </span>{active === msg.rid || <Button>Reply</Button>} - </> - ) - } - </div> </div> { msg.body && @@ -98,6 +78,26 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC { active === msg.rid && <MessageInput data={msg} text={draft || ''} onSend={postComment}>Write a comment...</MessageInput> } + <div className="msg-links"> + { + visitor.uid > 0 ? ( + <> + {active === msg.rid || <span style={linkStyle} onClick={() => setActive(msg.rid)}>Reply</span>} + { + visitor.uid == msg.user.uid && + <> + <span> · </span> + <span style={linkStyle} onClick={() => onStartEditing(msg)}>Edit</span> + </> + } + </> + ) : ( + <> + <span> · </span>{active === msg.rid || <Button>Reply</Button>} + </> + ) + } + </div> </div> ); } |