aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-06-15 11:23:58 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commitd8e4a1093f91c3715457232b93f7fb30dabff65c (patch)
treee14cd2598278f0df936244332ba7f21cdec9ca80 /vnext/src/ui
parent86c8c845032711384b6300e7f35cff5f21c92e2c (diff)
Fix MessageInput width
Diffstat (limited to 'vnext/src/ui')
-rw-r--r--vnext/src/ui/MessageInput.js2
-rw-r--r--vnext/src/ui/Thread.js2
2 files changed, 1 insertions, 3 deletions
diff --git a/vnext/src/ui/MessageInput.js b/vnext/src/ui/MessageInput.js
index fc3596cc..17c98c2a 100644
--- a/vnext/src/ui/MessageInput.js
+++ b/vnext/src/ui/MessageInput.js
@@ -60,7 +60,7 @@ export default function MessageInput({ text, data, rows, children, onSend }) {
updateFocus();
};
return (
- <form className="msg-comment-target" style={{ padding: '12px' }} onSubmit={onSubmit}>
+ <form className="msg-comment-target" style={{ padding: '12px', width: '100%' }} onSubmit={onSubmit}>
<div style={commentStyle}>
<textarea onChange={textChanged} onKeyPress={handleCtrlEnter}
ref={textareaRef} style={textInputStyle}
diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js
index 6ebef0dc..cc0dbac2 100644
--- a/vnext/src/ui/Thread.js
+++ b/vnext/src/ui/Thread.js
@@ -96,11 +96,9 @@ function Comment({ msg, draft, visitor, active, setActive, onStartEditing, postC
</div>
}
<div className="embedContainer" ref={embedRef} />
- <div className="msg-links">
{
active === msg.rid && <MessageInput data={msg} text={draft || ''} onSend={postComment}>Write a comment...</MessageInput>
}
- </div>
</div>
);
}