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])]))