Shrink left button in toolbar to not overflow
Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
parent
729a35d830
commit
5b5096a6d7
|
@ -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)]]))
|
||||||
|
|
Loading…
Reference in New Issue