From 2fa74b386a889f46dc76efc708e99ea05d353d8d Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 21 May 2026 15:31:41 +0300 Subject: [PATCH] Fix header behaviour with long text --- src/components/dms/MessagesListHeader.tsx | 87 ++++++++++++++--------- 1 file changed, 55 insertions(+), 32 deletions(-) diff --git a/src/components/dms/MessagesListHeader.tsx b/src/components/dms/MessagesListHeader.tsx index 3f5344faea..c085227737 100644 --- a/src/components/dms/MessagesListHeader.tsx +++ b/src/components/dms/MessagesListHeader.tsx @@ -6,18 +6,16 @@ import { type ModerationOpts, } from '@atproto/api' import {useLingui} from '@lingui/react/macro' -import {useNavigation} from '@react-navigation/native' import {createSanitizedDisplayName} from '#/lib/moderation/create-sanitized-display-name' import {makeProfileLink} from '#/lib/routes/links' -import {type NavigationProp} from '#/lib/routes/types' import {useProfileShadow} from '#/state/cache/profile-shadow' import {useModerationOpts} from '#/state/preferences/moderation-opts' import {useSession} from '#/state/session' import {PreviewableUserAvatar} from '#/view/com/util/UserAvatar' import {atoms as a, useTheme} from '#/alf' import {AvatarBubbles} from '#/components/AvatarBubbles' -import {Button, ButtonIcon} from '#/components/Button' +import {ButtonIcon} from '#/components/Button' import {ConvoMenu} from '#/components/dms/ConvoMenu' import {Bell2Off_Filled_Corner0_Rounded as BellOffIcon} from '#/components/icons/Bell2' import {DotGrid3x1_Stroke2_Corner0_Rounded as DotsHorizontalIcon} from '#/components/icons/DotGrid' @@ -116,7 +114,7 @@ function ProfileHeaderReady({ heading={ - + {displayName} + } - muted={convo.view.muted} settings={ () - - const handleNavigateToSettings = () => { - navigation.navigate('MessagesConversationSettings', { - conversation: convo.view.id, - }) - } - - const lockStatus = convo.details.lockStatus + const disabled = convo.details.lockStatus === 'locked-permanently' return ( + - - {convo.details.name} - - + + + {convo.details.name} + + + + } - muted={convo.view.muted} settings={ - + } /> ) @@ -193,22 +210,28 @@ function GroupHeaderReady({ function Wrapper({ heading, - muted, + settings, }: { heading: React.ReactNode - muted: boolean settings: React.ReactNode }) { return ( - - + + {heading} - - + {settings}