mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-05 05:15:42 +00:00
[Fix #2613] Long username is not cut with ... on Discover screen
This commit is contained in:
parent
1657f189ba
commit
43c2f09324
@ -68,8 +68,8 @@
|
|||||||
[view/status-view {:id message-id
|
[view/status-view {:id message-id
|
||||||
:style styles/discover-item-status-text
|
:style styles/discover-item-status-text
|
||||||
:status status}]
|
: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-name-container
|
||||||
[react/view styles/discover-list-item-avatar-container
|
[react/view styles/discover-list-item-avatar-container
|
||||||
[chat-icon/chat-icon
|
[chat-icon/chat-icon
|
||||||
@ -79,12 +79,12 @@
|
|||||||
[react/text {:style styles/discover-list-item-name
|
[react/text {:style styles/discover-list-item-name
|
||||||
:font :medium
|
:font :medium
|
||||||
:number-of-lines 1}
|
: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?
|
(when-not me?
|
||||||
(chat-button whisper-id))]
|
(chat-button whisper-id))]]
|
||||||
(when show-separator?
|
(when show-separator?
|
||||||
[react/view styles/separator])]]))
|
[react/view styles/separator])]]))
|
||||||
|
|
||||||
;; NOTE(oskarth): Should possibly be merged with discover-list-item-full, but
|
;; NOTE(oskarth): Should possibly be merged with discover-list-item-full, but
|
||||||
;; there are too many differences between preview item (main screen) and full
|
;; there are too many differences between preview item (main screen) and full
|
||||||
@ -102,8 +102,8 @@
|
|||||||
[view/status-view {:id message-id
|
[view/status-view {:id message-id
|
||||||
:style styles/discover-item-status-text
|
:style styles/discover-item-status-text
|
||||||
:status status}]
|
: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-name-container
|
||||||
[react/view styles/discover-list-item-avatar-container
|
[react/view styles/discover-list-item-avatar-container
|
||||||
[chat-icon/chat-icon
|
[chat-icon/chat-icon
|
||||||
@ -113,9 +113,9 @@
|
|||||||
[react/text {:style styles/discover-list-item-name
|
[react/text {:style styles/discover-list-item-name
|
||||||
:font :medium
|
:font :medium
|
||||||
:number-of-lines 1}
|
: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?
|
(when-not me?
|
||||||
(chat-button whisper-id))]]
|
(chat-button whisper-id))]]]
|
||||||
(when show-separator?
|
(when show-separator?
|
||||||
[react/view styles/separator])]))
|
[react/view styles/separator])]))
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
:font-size 16}})
|
:font-size 16}})
|
||||||
|
|
||||||
(def discover-list-item-name-container
|
(def discover-list-item-name-container
|
||||||
{:flex 0.3
|
{:flex 1
|
||||||
:padding-right 30
|
:padding-right 30
|
||||||
:flex-direction :row
|
:flex-direction :row
|
||||||
:justify-content :flex-start
|
:justify-content :flex-start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user