add spacing to comment reply button
This commit is contained in:
parent
41cb6ac3d8
commit
02b98582b8
|
@ -159,16 +159,16 @@ export default forwardRef(function Reply ({ item, onSuccess, replyOpen, children
|
|||
{replyOpen
|
||||
? <div className={styles.replyButtons} />
|
||||
: (
|
||||
<div className={styles.replyButtons}>
|
||||
<div
|
||||
onPointerDown={e => {
|
||||
if (!reply) {
|
||||
e.preventDefault()
|
||||
ref?.current?.quoteReply({ selectionOnly: true })
|
||||
}
|
||||
setReply(!reply)
|
||||
}}
|
||||
>
|
||||
<div
|
||||
className={styles.replyButtons} onPointerDown={e => {
|
||||
if (!reply) {
|
||||
e.preventDefault()
|
||||
ref?.current?.quoteReply({ selectionOnly: true })
|
||||
}
|
||||
setReply(!reply)
|
||||
}}
|
||||
>
|
||||
<div>
|
||||
{reply ? 'cancel' : 'reply'}
|
||||
</div>
|
||||
{/* HACK if we need more items, we should probably do a comment toolbar */}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue