[Fix #2613] Long username is not cut with ... on Discover screen

This commit is contained in:
Foo Pang 2017-12-15 17:55:56 +08:00 committed by Andy Tudhope
parent 1657f189ba
commit 43c2f09324
2 changed files with 13 additions and 13 deletions

View File

@ -68,8 +68,8 @@
[view/status-view {:id message-id
:style styles/discover-item-status-text
:status status}]
[react/view styles/discover-list-item-second-row
[react/touchable-highlight {:on-press #(re-frame/dispatch [:show-status-author-profile whisper-id])}
[react/touchable-highlight {:on-press #(re-frame/dispatch [:show-status-author-profile whisper-id])}
[react/view styles/discover-list-item-second-row
[react/view styles/discover-list-item-name-container
[react/view styles/discover-list-item-avatar-container
[chat-icon/chat-icon
@ -79,12 +79,12 @@
[react/text {:style styles/discover-list-item-name
:font :medium
:number-of-lines 1}
(display-name me? account-name contact-name name whisper-id)]]]]
(display-name me? account-name contact-name name whisper-id)]]]
(when-not me?
(chat-button whisper-id))]
(when show-separator?
[react/view styles/separator])]]))
(when-not me?
(chat-button whisper-id))]]
(when show-separator?
[react/view styles/separator])]]))
;; NOTE(oskarth): Should possibly be merged with discover-list-item-full, but
;; there are too many differences between preview item (main screen) and full
@ -102,8 +102,8 @@
[view/status-view {:id message-id
:style styles/discover-item-status-text
:status status}]
[react/view styles/discover-list-item-second-row
[react/touchable-highlight {:on-press #(re-frame/dispatch [:show-status-author-profile whisper-id])}
[react/touchable-highlight {:on-press #(re-frame/dispatch [:show-status-author-profile whisper-id])}
[react/view styles/discover-list-item-second-row
[react/view styles/discover-list-item-name-container
[react/view styles/discover-list-item-avatar-container
[chat-icon/chat-icon
@ -113,9 +113,9 @@
[react/text {:style styles/discover-list-item-name
:font :medium
:number-of-lines 1}
(display-name me? account-name contact-name name whisper-id)]]]]
(display-name me? account-name contact-name name whisper-id)]]]
(when-not me?
(chat-button whisper-id))]]
(when-not me?
(chat-button whisper-id))]]]
(when show-separator?
[react/view styles/separator])]))

View File

@ -47,7 +47,7 @@
:font-size 16}})
(def discover-list-item-name-container
{:flex 0.3
{:flex 1
:padding-right 30
:flex-direction :row
:justify-content :flex-start