From 02b98582b86d411da6ee047c779ddcbe36e4edc1 Mon Sep 17 00:00:00 2001 From: keyan Date: Thu, 26 Oct 2023 12:17:43 -0500 Subject: [PATCH] add spacing to comment reply button --- components/reply.js | 20 ++++++++++---------- components/reply.module.css | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/components/reply.js b/components/reply.js index 8e41d968..7a391a7a 100644 --- a/components/reply.js +++ b/components/reply.js @@ -159,16 +159,16 @@ export default forwardRef(function Reply ({ item, onSuccess, replyOpen, children {replyOpen ?
: ( -
-
{ - if (!reply) { - e.preventDefault() - ref?.current?.quoteReply({ selectionOnly: true }) - } - setReply(!reply) - }} - > +
{ + if (!reply) { + e.preventDefault() + ref?.current?.quoteReply({ selectionOnly: true }) + } + setReply(!reply) + }} + > +
{reply ? 'cancel' : 'reply'}
{/* HACK if we need more items, we should probably do a comment toolbar */} diff --git a/components/reply.module.css b/components/reply.module.css index c78c627b..3aa645b5 100644 --- a/components/reply.module.css +++ b/components/reply.module.css @@ -5,13 +5,13 @@ } .replyButtons { - font-size: 70%; + font-size: 75%; color: var(--theme-grey); font-weight: bold; display: flex; align-items: center; cursor: pointer; - padding: .25rem 0 .5rem 0; + padding: .25rem 0 .8rem 0; line-height: 1rem; vertical-align: middle; }