From 7302a067feff094af91608e190c71dcbeb967f13 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Tue, 25 Jun 2019 12:43:38 +0300
Subject: Comment: fix reply button position
---
vnext/src/ui/Thread.js | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
(limited to 'vnext/src/ui/Thread.js')
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
)}
-
- {
- visitor.uid > 0 ? (
- <>
- {active === msg.rid || setActive(msg.rid)}>Reply}
- {
- visitor.uid == msg.user.uid &&
- <>
- ·
- onStartEditing(msg)}>Edit
- >
- }
- >
- ) : (
- <>
- · {active === msg.rid || }
- >
- )
- }
-
{
msg.body &&
@@ -98,6 +78,26 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC
{
active === msg.rid && Write a comment...
}
+
+ {
+ visitor.uid > 0 ? (
+ <>
+ {active === msg.rid || setActive(msg.rid)}>Reply}
+ {
+ visitor.uid == msg.user.uid &&
+ <>
+ ·
+ onStartEditing(msg)}>Edit
+ >
+ }
+ >
+ ) : (
+ <>
+ · {active === msg.rid || }
+ >
+ )
+ }
+
);
}
--
cgit v1.2.3