mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(reply modal): improve c/parentCid styling in textarea
This commit is contained in:
@@ -71,20 +71,14 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.parentCidWrapper {
|
|
||||||
position: absolute;
|
|
||||||
background-color: var(--post-form-field-input-background-color, white);
|
|
||||||
width: 105px;
|
|
||||||
height: 15px;
|
|
||||||
left: 1px;
|
|
||||||
top: 1px;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.parentCid {
|
.parentCid {
|
||||||
color: var(--post-form-field-input-color);
|
color: var(--post-form-field-input-color);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-decoration: underline;
|
width: auto;
|
||||||
|
background-color: var(--post-form-field-input-background-color, white);
|
||||||
|
padding: 2px;
|
||||||
|
left: 1px;
|
||||||
|
top: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ const ReplyModal = ({ closeModal, parentCid, scrollY }: ReplyModalProps) => {
|
|||||||
}, [isMobile, scrollY]);
|
}, [isMobile, scrollY]);
|
||||||
|
|
||||||
const parentCidRef = useRef<HTMLSpanElement>(null);
|
const parentCidRef = useRef<HTMLSpanElement>(null);
|
||||||
const parentCidWrapperRef = useRef<HTMLDivElement>(null);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (parentCidRef.current && parentCidRef.current) {
|
if (parentCidRef.current && parentCidRef.current) {
|
||||||
@@ -99,10 +98,8 @@ const ReplyModal = ({ closeModal, parentCid, scrollY }: ReplyModalProps) => {
|
|||||||
<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.content}>
|
<div className={styles.content}>
|
||||||
<span className={styles.parentCidWrapper} ref={parentCidWrapperRef}>
|
<span className={styles.parentCid} ref={parentCidRef}>
|
||||||
<span className={styles.parentCid} ref={parentCidRef}>
|
{`c/${parentCid && Plebbit.getShortCid(parentCid)}`}
|
||||||
{`c/${parentCid && Plebbit.getShortCid(parentCid)}`}
|
|
||||||
</span>
|
|
||||||
</span>
|
</span>
|
||||||
<textarea
|
<textarea
|
||||||
cols={48}
|
cols={48}
|
||||||
|
|||||||
Reference in New Issue
Block a user