fix(reply modal): add minimal timeout to allow rerender when already opened

This commit is contained in:
plebeius.eth
2024-04-29 13:34:46 +02:00
parent d6179d0fdc
commit 05cc3c4174
3 changed files with 21 additions and 15 deletions
+4
View File
@@ -426,6 +426,10 @@
font-weight: 700 !important;
}
.replyToPost {
cursor: pointer;
}
@media (max-width: 640px) {
.postDesktop {
display: none;
+1 -1
View File
@@ -61,7 +61,7 @@ const ReplyModal = ({ closeModal, parentCid }: ReplyModalProps) => {
const centeredPosition = scrollY + viewportHeight / 2 - modalHeight / 2;
nodeRef.current.style.top = `${centeredPosition}px`;
}
}, []);
}, [isMobile]);
const ReplyForm = React.memo(() => (
<div className={styles.replyForm}>