Skip to content

Commit fecfa90

Browse files
mohsen-ghafourichurik
authored andcommitted
[#17218] fix: android channel name ellipsize completely
1 parent 07d1b13 commit fecfa90

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

src/status_im2/contexts/chat/messages/content/text/view.cljs

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
(:require
33
[quo2.core :as quo]
44
[quo2.foundations.colors :as colors]
5+
[react-native.platform :as platform]
56
[react-native.core :as rn]
67
[status-im2.contexts.chat.messages.content.link-preview.view :as link-preview]
78
[status-im2.contexts.chat.messages.content.text.style :as style]
@@ -104,8 +105,8 @@
104105
(render-inline acc e chat-id style-override mention-first))
105106
[quo/text
106107
{:style {:size :paragraph-1
107-
:margin-bottom (if mention-first (if quo.platform/ios? 4 0) 2)
108-
:margin-top (if mention-first (if quo.platform/ios? -4 0) 2)
108+
:margin-bottom (if mention-first (if platform/ios? 4 0) 2)
109+
:margin-top (if mention-first (if platform/ios? -4 0) 2)
109110
:color (when (seq style-override) colors/white)}}]
110111
children)])
111112

src/status_im2/contexts/chat/messages/list/style.cljs

-4
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,5 @@
5656
:margin-bottom side-margin-animation}
5757
{:align-items :flex-start}))
5858

59-
(def name-container
60-
{:flex-direction :row
61-
:align-items :center})
62-
6359
(def bio
6460
{:margin-top 8})

src/status_im2/contexts/chat/messages/list/view.cljs

+7-8
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,13 @@
223223
:display-name display-name
224224
:online? online?
225225
:profile-picture photo-path}])]
226-
[rn/view {:style style/name-container}
227-
[quo/text
228-
{:weight :semi-bold
229-
:size :heading-1
230-
:style {:margin-top (if group-chat 54 12)}
231-
:number-of-lines 1}
232-
display-name
233-
[contact-icon contact]]]
226+
[quo/text
227+
{:weight :semi-bold
228+
:size :heading-1
229+
:style {:margin-top (if group-chat 54 12)}
230+
:number-of-lines 1}
231+
display-name
232+
[contact-icon contact]]
234233
(when bio
235234
[quo/text {:style style/bio}
236235
bio])

0 commit comments

Comments
 (0)