Skip to content

Commit

Permalink
Fix ConversationHeader context menu getting cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds-signal committed Oct 5, 2023
1 parent b4b3883 commit 0f6d82d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ts/components/conversation/ConversationHeader.tsx
Expand Up @@ -11,6 +11,7 @@ import {
SubMenu,
} from 'react-contextmenu';

import { createPortal } from 'react-dom';
import { DisappearingTimeDialog } from '../DisappearingTimeDialog';
import { Avatar, AvatarSize } from '../Avatar';
import { InContactsIcon } from '../InContactsIcon';
Expand Down Expand Up @@ -479,7 +480,7 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
);
});

return (
return createPortal(
<ContextMenu id={triggerId} rtl={isRTL}>
{disableTimerChanges ? null : (
<SubMenu hoverDelay={1} title={disappearingTitle} rtl={!isRTL}>
Expand Down Expand Up @@ -571,7 +572,8 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
)}
</MenuItem>
)}
</ContextMenu>
</ContextMenu>,
document.body
);
}

Expand Down

0 comments on commit 0f6d82d

Please sign in to comment.