From da3fd8645d47f7a8bf9a666c1c7cf81d80059e9e Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Thu, 20 Mar 2025 14:46:09 +0000 Subject: [PATCH] Ensure user identifiers can be viewed / tooltip'd. --- res/css/views/right_panel/_UserInfo.pcss | 7 +++++++ src/components/views/right_panel/UserInfo.tsx | 18 ++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/res/css/views/right_panel/_UserInfo.pcss b/res/css/views/right_panel/_UserInfo.pcss index 7fccd6e2d1..5620aa63fe 100644 --- a/res/css/views/right_panel/_UserInfo.pcss +++ b/res/css/views/right_panel/_UserInfo.pcss @@ -119,6 +119,9 @@ Please see LICENSE files in the repository root for full details. word-break: break-all; text-overflow: ellipsis; + /* Don't spill over the container */ + width: 90%; + /* E2E icon wrapper */ .mx_Flex > span { display: inline-block; @@ -127,11 +130,15 @@ Please see LICENSE files in the repository root for full details. .mx_UserInfo_profile_name { height: 30px; + text-wrap: nowrap; } .mx_UserInfo_profile_mxid { color: var(--cpd-color-text-secondary); height: 28px; + max-width: 100%; + /* MXIDs are one long "word" */ + word-break: break-all; } .mx_UserInfo_profileStatus { diff --git a/src/components/views/right_panel/UserInfo.tsx b/src/components/views/right_panel/UserInfo.tsx index 276c5b3bbd..97eb5db0c3 100644 --- a/src/components/views/right_panel/UserInfo.tsx +++ b/src/components/views/right_panel/UserInfo.tsx @@ -1409,7 +1409,11 @@ export const UserInfoHeader: React.FC<{ - {displayName} + + + {displayName} + + {presenceLabel} @@ -1422,11 +1426,13 @@ export const UserInfoHeader: React.FC<{ )} - - userIdentifier} border={false}> - {userIdentifier} - - + {userIdentifier && ( + + userIdentifier} border={false}> + {userIdentifier} + + + )} {!hideVerificationSection && }