From 51469c507ed1d15e9f2812b703103d352a1c976d Mon Sep 17 00:00:00 2001 From: tbenr Date: Sat, 15 Sep 2018 20:08:50 +0200 Subject: [PATCH] Fixes #4393 Signed-off-by: Andrey Shovkoplyas --- src/status_im/ui/components/toolbar/styles.cljs | 4 +++- src/status_im/ui/components/toolbar/view.cljs | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/status_im/ui/components/toolbar/styles.cljs b/src/status_im/ui/components/toolbar/styles.cljs index 458d30a04c..9ecdd94645 100644 --- a/src/status_im/ui/components/toolbar/styles.cljs +++ b/src/status_im/ui/components/toolbar/styles.cljs @@ -36,7 +36,9 @@ {:color colors/black :letter-spacing -0.2 :font-size 17 - :ios {:text-align :center} + :ios {:text-align :center + :margin-left 15 + :margin-right 15} :android {:text-align :left :margin-left 22}}) diff --git a/src/status_im/ui/components/toolbar/view.cljs b/src/status_im/ui/components/toolbar/view.cljs index 86e63cf674..dba0d100ff 100644 --- a/src/status_im/ui/components/toolbar/view.cljs +++ b/src/status_im/ui/components/toolbar/view.cljs @@ -81,10 +81,12 @@ ([title-style title] (content-title title-style title nil nil)) ([title-style title subtitle-style subtitle] + (content-title title-style title subtitle-style subtitle nil)) + ([title-style title subtitle-style subtitle additional-text-props] [react/view {:style styles/toolbar-title-container} - [react/text {:style (merge styles/toolbar-title-text title-style) - :font :toolbar-title} - title] + [react/text (merge {:style (merge styles/toolbar-title-text title-style) + :font :toolbar-title :numberOfLines 1 :ellipsizeMode :tail} + additional-text-props) title] (when subtitle [react/text {:style subtitle-style} subtitle])]))