From e6cacdb2dbf107a779f86266742b22dcb1b821a6 Mon Sep 17 00:00:00 2001 From: James Morris Date: Thu, 21 Jul 2022 12:36:54 +0100 Subject: [PATCH] Moved reply box to bottom and made it autofocus refs https://github.com/TryGhost/Team/issues/1703 --- apps/comments-ui/src/components/Comment.js | 14 +++++++------- apps/comments-ui/src/components/Form.js | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/comments-ui/src/components/Comment.js b/apps/comments-ui/src/components/Comment.js index 2c53496783..ee3c7c93a0 100644 --- a/apps/comments-ui/src/components/Comment.js +++ b/apps/comments-ui/src/components/Comment.js @@ -65,11 +65,16 @@ const Comment = (props) => { + {hasReplies && +
+ +
+ } {
- {hasReplies && -
- -
- } ); } diff --git a/apps/comments-ui/src/components/Form.js b/apps/comments-ui/src/components/Form.js index 0543c27f72..20c211ad5a 100644 --- a/apps/comments-ui/src/components/Form.js +++ b/apps/comments-ui/src/components/Form.js @@ -14,7 +14,7 @@ const Form = (props) => { if (props.isReply) { config = { placeholder: 'Reply to comment', - autofocus: false + autofocus: true }; } else if (props.isEdit) { config = { @@ -163,7 +163,7 @@ const Form = (props) => {
{