[#17218] fix: android channel name ellipsize completely (#17262)

This commit is contained in:
Mohsen Ghafouri 2023-09-15 14:52:26 +03:00 committed by GitHub
parent 4006495b22
commit a53ba0c4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 13 deletions

View File

@ -2,11 +2,11 @@
(:require
[quo2.core :as quo]
[quo2.foundations.colors :as colors]
[react-native.platform :as platform]
[react-native.core :as rn]
[status-im2.contexts.chat.messages.content.link-preview.view :as link-preview]
[status-im2.contexts.chat.messages.content.text.style :as style]
[utils.i18n :as i18n]
[react-native.platform :as platform]
[utils.re-frame :as rf]))
(defn render-inline

View File

@ -56,9 +56,5 @@
:margin-bottom side-margin-animation}
{:align-items :flex-start}))
(def name-container
{:flex-direction :row
:align-items :center})
(def bio
{:margin-top 8})

View File

@ -223,14 +223,13 @@
:display-name display-name
:online? online?
:profile-picture photo-path}])]
[rn/view {:style style/name-container}
[quo/text
{:weight :semi-bold
:size :heading-1
:style {:margin-top (if group-chat 54 12)}
:number-of-lines 1}
display-name
[contact-icon contact]]]
[quo/text
{:weight :semi-bold
:size :heading-1
:style {:margin-top (if group-chat 54 12)}
:number-of-lines 1}
display-name
[contact-icon contact]]
(when bio
[quo/text {:style style/bio}
bio])