0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Removed the left and right spacing around the textbox when there are no comments

refs https://github.com/TryGhost/Team/issues/1752
This commit is contained in:
James Morris 2022-08-05 14:57:02 +01:00
parent a1a0bf6723
commit fa9b22e2c6

View file

@ -339,9 +339,8 @@ const Form = (props) => {
<form ref={formEl} onClick={focusEditor} onMouseDown={preventIfFocused} onTouchStart={preventIfFocused} className={`
transition duration-200
pt-3 pb-2 px-3
-mt-[12px] -mr-3 mb-10 -ml-[12px]
-mt-[12px] -mx-3 mb-10
rounded-md
${!commentsCount && !props.isEdit && !props.isReply && 'mt-0 ml-0 mr-0'}
${isFormReallyOpen ? 'cursor-default' : 'cursor-pointer'}
${(!props.isReply && !props.isEdit) && '-mt-[4px]'}
${(props.isReply || props.isEdit) && '-mt-[16px]'}