fix(reply modal): improve c/parentCid styling in textarea

This commit is contained in:
plebeius.eth
2024-05-14 22:43:21 +02:00
parent 9b85416a57
commit 148e6f1989
2 changed files with 7 additions and 16 deletions
+2 -5
View File
@@ -64,7 +64,6 @@ const ReplyModal = ({ closeModal, parentCid, scrollY }: ReplyModalProps) => {
}, [isMobile, scrollY]);
const parentCidRef = useRef<HTMLSpanElement>(null);
const parentCidWrapperRef = useRef<HTMLDivElement>(null);
useEffect(() => {
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)} />
</div>
<div className={styles.content}>
<span className={styles.parentCidWrapper} ref={parentCidWrapperRef}>
<span className={styles.parentCid} ref={parentCidRef}>
{`c/${parentCid && Plebbit.getShortCid(parentCid)}`}
</span>
<span className={styles.parentCid} ref={parentCidRef}>
{`c/${parentCid && Plebbit.getShortCid(parentCid)}`}
</span>
<textarea
cols={48}