From 5b5096a6d7039a050cb631630eeb5286afb631b6 Mon Sep 17 00:00:00 2001 From: Gheorghe Pinzaru Date: Fri, 24 Jul 2020 11:05:00 +0300 Subject: [PATCH] Shrink left button in toolbar to not overflow Signed-off-by: Gheorghe Pinzaru --- src/status_im/ui/components/toolbar.cljs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/status_im/ui/components/toolbar.cljs b/src/status_im/ui/components/toolbar.cljs index 86006c3f3f..fbe4e21d48 100644 --- a/src/status_im/ui/components/toolbar.cljs +++ b/src/status_im/ui/components/toolbar.cljs @@ -6,7 +6,8 @@ :or {size :default}}] (merge {:align-items :center :padding-horizontal 8 - :flex-direction :row} + :flex-direction :row + :justify-content :space-between} (when center? {:justify-content :center}) (when show-border? @@ -26,6 +27,7 @@ [react/view {:style (toolbar-container {:show-border? show-border? :center? false :size size})} - (when left left) - [react/view {:flex 1}] - (when right right)])) + [react/view {:flex-shrink 1} + (when left left)] + [react/view + (when right right)]]))