Consistent display of E164 on some dialogs

This commit is contained in:
Fedor Indutny 2024-02-13 13:57:45 -08:00 committed by GitHub
parent 5ba3ed1241
commit 07a435a1bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 13 deletions

View file

@ -39,8 +39,7 @@
color: $color-gray-25; color: $color-gray-25;
} }
&__about, &__about {
&__phone-number {
user-select: text; user-select: text;
} }
} }

View file

@ -224,9 +224,6 @@ export function ContactModal({
<div className="module-about__container"> <div className="module-about__container">
<About text={contact.about} /> <About text={contact.about} />
</div> </div>
{contact.phoneNumber && (
<div className="ContactModal__info">{contact.phoneNumber}</div>
)}
{!contact.isMe && ( {!contact.isMe && (
<div className="ContactModal__info"> <div className="ContactModal__info">
<SharedGroupNames <SharedGroupNames

View file

@ -74,14 +74,9 @@ export function ConversationDetailsHeader({
} }
} else if (!isMe) { } else if (!isMe) {
subtitle = ( subtitle = (
<> <div className="ConversationDetailsHeader__subtitle__about">
<div className="ConversationDetailsHeader__subtitle__about"> <About text={conversation.about} />
<About text={conversation.about} /> </div>
</div>
<div className="ConversationDetailsHeader__subtitle__phone-number">
{conversation.phoneNumber}
</div>
</>
); );
preferredBadge = badges?.[0]; preferredBadge = badges?.[0];
} }