From d36ea02a025448e59104e5d1b8d3bd9d8aff7e28 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 3 Aug 2023 02:10:59 +0800 Subject: [PATCH] Undo "Experiment: make replies container not whole-clickable" --- src/pages/status.jsx | 60 ++++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/src/pages/status.jsx b/src/pages/status.jsx index 5afeb835..8afa7050 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -843,24 +843,24 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { weight, } = status; const isHero = statusID === id; - const StatusParent = useCallback( - (props) => - isThread || thread || ancestor ? ( - { - resetScrollPosition(statusID); - }} - {...props} - /> - ) : ( -
- ), - [isThread, thread], - ); + // const StatusParent = useCallback( + // (props) => + // isThread || thread || ancestor ? ( + // { + // resetScrollPosition(statusID); + // }} + // {...props} + // /> + // ) : ( + //
+ // ), + // [isThread, thread], + // ); return (
  • ) : ( - + // + { + resetScrollPosition(statusID); + }} + >
  • )} */} - + {/* */} + )} {descendant && replies?.length > 0 && ( {replies.map((r) => (
  • - {/* { resetScrollPosition(r.id); }} - > */} -
    + > + {/*
    */}
    )} -
    - {/* */} + {/*
  • */} + {r.replies?.length && (