mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(reply modal): add minimal timeout to allow rerender when already opened
This commit is contained in:
@@ -426,6 +426,10 @@
|
||||
font-weight: 700 !important;
|
||||
}
|
||||
|
||||
.replyToPost {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.postDesktop {
|
||||
display: none;
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user