aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-06-25 12:43:38 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commit7302a067feff094af91608e190c71dcbeb967f13 (patch)
treec8d88bf32262e850bfe3c126caa10ecd77a44c8e /vnext/src
parent6d5e8905d6a676ca966fa32f6823ebc1409caabe (diff)
Comment: fix reply button position
Diffstat (limited to 'vnext/src')
-rw-r--r--vnext/src/ui/Thread.js40
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>&nbsp;&middot;&nbsp;</span>
- <span style={linkStyle} onClick={() => onStartEditing(msg)}>Edit</span>
- </>
- }
- </>
- ) : (
- <>
- <span>&nbsp;&middot;&nbsp;</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>&nbsp;&middot;&nbsp;</span>
+ <span style={linkStyle} onClick={() => onStartEditing(msg)}>Edit</span>
+ </>
+ }
+ </>
+ ) : (
+ <>
+ <span>&nbsp;&middot;&nbsp;</span>{active === msg.rid || <Button>Reply</Button>}
+ </>
+ )
+ }
+ </div>
</div>
);
}