Align toggle in Mail Server settings
Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
parent
4d5648d88a
commit
8cf1fb3da3
|
@ -40,8 +40,15 @@
|
|||
|
||||
(def mailserver-pinned
|
||||
{:padding-horizontal 16
|
||||
:flex-direction :row
|
||||
:padding-vertical 5})
|
||||
:flex-direction :row
|
||||
:align-items :center
|
||||
:padding-vertical 5})
|
||||
|
||||
(def mailserver-pinned-checkbox-container
|
||||
{:width 40
|
||||
:height 40
|
||||
:align-items :center
|
||||
:justify-content :center})
|
||||
|
||||
(def mailserver-pinned-text-container
|
||||
{:margin-top 15})
|
||||
{:padding-horizontal 15})
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
#(re-frame/dispatch [:mailserver.ui/pin-pressed]))}
|
||||
[react/view {:style styles/mailserver-pinned}
|
||||
[checkbox.views/checkbox
|
||||
{:checked? (not pinned?)
|
||||
{:checked? (not pinned?)
|
||||
:style styles/mailserver-pinned-checkbox-container
|
||||
:on-value-change (if pinned?
|
||||
#(re-frame/dispatch [:mailserver.ui/unpin-pressed])
|
||||
#(re-frame/dispatch [:mailserver.ui/pin-pressed]))}]
|
||||
|
|
Loading…
Reference in New Issue