Shrink left button in toolbar to not overflow

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-07-24 11:05:00 +03:00
parent 729a35d830
commit 5b5096a6d7
No known key found for this signature in database
GPG Key ID: C9A094959935A952
1 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,8 @@
:or {size :default}}] :or {size :default}}]
(merge {:align-items :center (merge {:align-items :center
:padding-horizontal 8 :padding-horizontal 8
:flex-direction :row} :flex-direction :row
:justify-content :space-between}
(when center? (when center?
{:justify-content :center}) {:justify-content :center})
(when show-border? (when show-border?
@ -26,6 +27,7 @@
[react/view {:style (toolbar-container {:show-border? show-border? [react/view {:style (toolbar-container {:show-border? show-border?
:center? false :center? false
:size size})} :size size})}
(when left left) [react/view {:flex-shrink 1}
[react/view {:flex 1}] (when left left)]
(when right right)])) [react/view
(when right right)]]))