From dc6802738c5fd853c398a4a4d8db9ee3a5361d7e Mon Sep 17 00:00:00 2001 From: HendrikThePendric Date: Mon, 16 Oct 2023 15:37:31 +0200 Subject: [PATCH] fix: address incorrect conflict resolution so threads are scrollable --- .../InterpretationThread.js | 76 +++++++++---------- 1 file changed, 36 insertions(+), 40 deletions(-) diff --git a/src/components/Interpretations/InterpretationModal/InterpretationThread.js b/src/components/Interpretations/InterpretationModal/InterpretationThread.js index 3106ecb62..03686cd7b 100644 --- a/src/components/Interpretations/InterpretationModal/InterpretationThread.js +++ b/src/components/Interpretations/InterpretationModal/InterpretationThread.js @@ -35,51 +35,47 @@ const InterpretationThread = ({ return (
-
-
- - {moment(fromServerDate(interpretation.created)).format( - 'LLL' - )} -
- {DownloadMenu && ( - - )} -
- focusRef.current?.focus() - : null - } - onUpdated={() => onThreadUpdated(true)} - onDeleted={onInterpretationDeleted} - isInThread={true} - /> -
- {interpretation.comments.map((comment) => ( - - ))} -
- {interpretationAccess.comment && ( - + + {moment(fromServerDate(interpretation.created)).format('LLL')} +
+ {DownloadMenu && ( + + )} +
+ focusRef.current?.focus() + : null + } + onUpdated={() => onThreadUpdated(true)} + onDeleted={onInterpretationDeleted} + isInThread={true} + /> +
+ {interpretation.comments.map((comment) => ( + onThreadUpdated(true)} - focusRef={focusRef} + onThreadUpdated={onThreadUpdated} + canComment={interpretationAccess.comment} /> - )} + ))}
+ {interpretationAccess.comment && ( + onThreadUpdated(true)} + focusRef={focusRef} + /> + )}