mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
added ReplyModal placeholder
This commit is contained in:
@@ -185,8 +185,9 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
||||
<div>
|
||||
<input id="name" type="text" placeholder="Embed link" ref={linkRef} />
|
||||
</div>
|
||||
<div>
|
||||
<textarea rows="4" placeholder="Comment" wrap="soft" ref={commentRef} />
|
||||
<div className="textarea-wrapper">
|
||||
<span className="fixed-text">{`c/${selectedShortCid}`}</span>
|
||||
<textarea className="textarea" rows="4" placeholder="Comment" wrap="soft" ref={commentRef} />
|
||||
</div>
|
||||
<div>
|
||||
<button id="next" onClick={handleSubmit}>Post</button>
|
||||
|
||||
@@ -56,6 +56,23 @@ export const StyledModal = styled(Modal)`
|
||||
margin-top: 0.5px;
|
||||
}
|
||||
|
||||
.textarea-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.textarea {
|
||||
padding-top: 2em;
|
||||
}
|
||||
|
||||
.fixed-text {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 5px;
|
||||
color: #999;
|
||||
text-decoration: underline;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
#captcha-container {
|
||||
position: relative;
|
||||
clear: both;
|
||||
|
||||
Reference in New Issue
Block a user