fix(post): some quotes to replies wouldn't show quoted posts on hover

This commit is contained in:
Tom (plebeius.eth)
2024-11-09 20:46:27 +01:00
parent cbd94e3b4e
commit 965c6f846a
@@ -18,8 +18,6 @@ interface ReplyQuotePreviewProps {
const handleQuoteHover = (cid: string, onElementOutOfView: () => void) => {
const targetElements = document.querySelectorAll(`[data-cid="${cid}"]`);
if (targetElements.length === 0) return;
const isInViewport = (element: HTMLElement) => {
const bounding = element.getBoundingClientRect();
return (