diff --git a/src/components/left/main/Topic.tsx b/src/components/left/main/Topic.tsx index 41c2f089a..8226379bb 100644 --- a/src/components/left/main/Topic.tsx +++ b/src/components/left/main/Topic.tsx @@ -168,6 +168,7 @@ const Topic: FC = ({ style={style} href={IS_OPEN_IN_NEW_TAB_SUPPORTED ? `#${createLocationHash(chatId, 'thread', topic.id)}` : undefined} contextActions={contextActions} + withPortalForMenu ref={ref} >
diff --git a/src/components/left/main/hooks/useTopicContextActions.ts b/src/components/left/main/hooks/useTopicContextActions.ts index 887aac9c8..1ac658e97 100644 --- a/src/components/left/main/hooks/useTopicContextActions.ts +++ b/src/components/left/main/hooks/useTopicContextActions.ts @@ -53,8 +53,6 @@ export default function useTopicContextActions({ }, }; - const newTabActionSeparator = actionOpenInNewTab && { isSeparator: true, key: 'newTabSeparator' }; - const actionUnreadMark = topic.unreadCount || !wasOpened ? { title: lang('MarkAsRead'), @@ -110,7 +108,6 @@ export default function useTopicContextActions({ return compact([ actionOpenInNewTab, - newTabActionSeparator, actionPin, actionUnreadMark, actionMute,