mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
style(reply modal): add c/shortParentCid to textarea
This commit is contained in:
@@ -56,8 +56,13 @@
|
|||||||
border: var(--reply-modal-field-input-border-focus, revert);
|
border: var(--reply-modal-field-input-border-focus, revert);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.content textarea {
|
.content textarea {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
padding-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer button {
|
.footer button {
|
||||||
@@ -66,12 +71,13 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.parentCid input[type="text"] {
|
.parentCid {
|
||||||
margin-bottom: -1px !important;
|
color: var(--post-form-field-input-color);
|
||||||
}
|
position: absolute;
|
||||||
|
top: 4px;
|
||||||
.parentCid input[type="text"]:focus {
|
left: 5px;
|
||||||
border: var(--reply-modal-field-input-border, revert) !important;
|
text-decoration: underline;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
|
|||||||
@@ -88,10 +88,8 @@ const ReplyModal = ({ closeModal, parentCid, scrollY }: ReplyModalProps) => {
|
|||||||
<div className={styles.link}>
|
<div className={styles.link}>
|
||||||
<input type='text' ref={urlRef} placeholder={_.capitalize(t('link'))} onChange={(e) => setContent.link(e.target.value)} />
|
<input type='text' ref={urlRef} placeholder={_.capitalize(t('link'))} onChange={(e) => setContent.link(e.target.value)} />
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.parentCid}>
|
|
||||||
<input type='text' readOnly value={`c/${parentCid && Plebbit.getShortCid(parentCid)}`} />
|
|
||||||
</div>
|
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
|
<span className={styles.parentCid}>{`c/${parentCid && Plebbit.getShortCid(parentCid)}`}</span>
|
||||||
<textarea
|
<textarea
|
||||||
cols={48}
|
cols={48}
|
||||||
rows={4}
|
rows={4}
|
||||||
|
|||||||
@@ -133,6 +133,7 @@
|
|||||||
--post-form-field-input-appearance: none;
|
--post-form-field-input-appearance: none;
|
||||||
--post-form-field-input-outline: none;
|
--post-form-field-input-outline: none;
|
||||||
--post-form-field-input-focus-border: 1px solid #ea8;
|
--post-form-field-input-focus-border: 1px solid #ea8;
|
||||||
|
--post-form-field-input-color: #000;
|
||||||
|
|
||||||
/* quotelink */
|
/* quotelink */
|
||||||
--post-quotelink-text-color: navy;
|
--post-quotelink-text-color: navy;
|
||||||
@@ -277,6 +278,7 @@
|
|||||||
--post-form-field-input-appearance: none;
|
--post-form-field-input-appearance: none;
|
||||||
--post-form-field-input-outline: none;
|
--post-form-field-input-outline: none;
|
||||||
--post-form-field-input-focus-border: 1px solid #98e;
|
--post-form-field-input-focus-border: 1px solid #98e;
|
||||||
|
--post-form-field-input-color: #c5c8c6;
|
||||||
|
|
||||||
/* post mobile */
|
/* post mobile */
|
||||||
--post-mobile-background-color: #d6daf0;
|
--post-mobile-background-color: #d6daf0;
|
||||||
|
|||||||
Reference in New Issue
Block a user