[#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 (:require
[quo2.core :as quo] [quo2.core :as quo]
[quo2.foundations.colors :as colors] [quo2.foundations.colors :as colors]
[react-native.platform :as platform]
[react-native.core :as rn] [react-native.core :as rn]
[status-im2.contexts.chat.messages.content.link-preview.view :as link-preview] [status-im2.contexts.chat.messages.content.link-preview.view :as link-preview]
[status-im2.contexts.chat.messages.content.text.style :as style] [status-im2.contexts.chat.messages.content.text.style :as style]
[utils.i18n :as i18n] [utils.i18n :as i18n]
[react-native.platform :as platform]
[utils.re-frame :as rf])) [utils.re-frame :as rf]))
(defn render-inline (defn render-inline

View File

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

View File

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