Prevent comment text overlap with submit button
This commit is contained in:
parent
323a62f041
commit
bc752b853a
|
@ -434,6 +434,8 @@ export function CommentInput(props: {
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'textarea textarea-bordered w-full resize-none'
|
'textarea textarea-bordered w-full resize-none'
|
||||||
)}
|
)}
|
||||||
|
// Make room for floating submit button.
|
||||||
|
style={{ paddingRight: 48 }}
|
||||||
placeholder={
|
placeholder={
|
||||||
parentCommentId || parentAnswerOutcome
|
parentCommentId || parentAnswerOutcome
|
||||||
? 'Write a reply... '
|
? 'Write a reply... '
|
||||||
|
@ -459,7 +461,7 @@ export function CommentInput(props: {
|
||||||
{user && !isSubmitting && (
|
{user && !isSubmitting && (
|
||||||
<button
|
<button
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'btn btn-ghost btn-sm absolute right-2 block flex flex-row capitalize',
|
'btn btn-ghost btn-sm absolute right-2 flex-row capitalize pl-2',
|
||||||
parentCommentId || parentAnswerOutcome
|
parentCommentId || parentAnswerOutcome
|
||||||
? ' bottom-4'
|
? ' bottom-4'
|
||||||
: ' bottom-2',
|
: ' bottom-2',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user