mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update styling, count/highlight logic depending on params and post id
This commit is contained in:
@@ -15,7 +15,7 @@ interface ReplyQuotePreviewProps {
|
||||
}
|
||||
|
||||
const handleQuoteHover = (cid: string, onElementOutOfView: () => void) => {
|
||||
const targetElements = document.querySelectorAll(`.${cid}`);
|
||||
const targetElements = document.querySelectorAll(`[data-cid="${cid}"]`);
|
||||
|
||||
if (targetElements.length === 0) return;
|
||||
|
||||
@@ -97,7 +97,7 @@ const DesktopQuotePreview = ({ backlinkReply, quotelinkReply, isBacklinkReply, i
|
||||
|
||||
const handleMouseLeave = (cid: string | null) => {
|
||||
if (cid) {
|
||||
const targetElements = document.querySelectorAll(`.${cid}`);
|
||||
const targetElements = document.querySelectorAll(`[data-cid="${cid}"]`);
|
||||
targetElements.forEach((element) => {
|
||||
element.classList.remove('highlight');
|
||||
});
|
||||
@@ -183,7 +183,7 @@ const MobileQuotePreview = ({ backlinkReply, quotelinkReply, isBacklinkReply, is
|
||||
|
||||
const handleMouseLeave = (cid: string | null) => {
|
||||
if (cid) {
|
||||
const targetElements = document.querySelectorAll(`.${cid}`);
|
||||
const targetElements = document.querySelectorAll(`[data-cid="${cid}"]`);
|
||||
targetElements.forEach((element) => {
|
||||
element.classList.remove('highlight');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user