Fix Message Detail Reaction Viewer overflow (#6239)
This commit is contained in:
parent
d2f1431a66
commit
7ea945c157
2 changed files with 7 additions and 9 deletions
|
@ -149,7 +149,7 @@ export function MessageDetail({
|
|||
toggleSafetyNumberModal,
|
||||
viewStory,
|
||||
}: Props): JSX.Element {
|
||||
const messageContainerRef = useRef<HTMLDivElement>(null);
|
||||
const messageDetailRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
function renderAvatar(contact: Contact): JSX.Element {
|
||||
const {
|
||||
|
@ -315,19 +315,16 @@ export function MessageDetail({
|
|||
: undefined;
|
||||
|
||||
return (
|
||||
<div className="module-message-detail">
|
||||
<div className="module-message-detail" ref={messageDetailRef}>
|
||||
<PanelSection>
|
||||
<div
|
||||
className="module-message-detail__message-container"
|
||||
ref={messageContainerRef}
|
||||
>
|
||||
<div className="module-message-detail__message-container">
|
||||
<Message
|
||||
{...message}
|
||||
renderingContext="conversation/MessageDetail"
|
||||
checkForAccount={checkForAccount}
|
||||
clearTargetedMessage={clearTargetedMessage}
|
||||
contactNameColor={contactNameColor}
|
||||
containerElementRef={messageContainerRef}
|
||||
containerElementRef={messageDetailRef}
|
||||
containerWidthBreakpoint={WidthBreakpoint.Wide}
|
||||
renderMenu={undefined}
|
||||
disableScroll
|
||||
|
|
|
@ -2668,9 +2668,10 @@
|
|||
{
|
||||
"rule": "React-useRef",
|
||||
"path": "ts/components/conversation/MessageDetail.tsx",
|
||||
"line": " const messageContainerRef = useRef<HTMLDivElement>(null);",
|
||||
"line": " const messageDetailRef = useRef<HTMLDivElement>(null);",
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2023-04-12T15:51:28.066Z"
|
||||
"updated": "2023-09-11T22:53:43.464Z",
|
||||
"reasonDetail": "Used to pass ref of MessageDetail to Message. Used for ReactionViewer overflow detection."
|
||||
},
|
||||
{
|
||||
"rule": "React-useRef",
|
||||
|
|
Loading…
Reference in a new issue