[FIX #3698] Decrease tapping area to make the version number not clickable

This commit is contained in:
Daniel Regeci 2018-04-04 16:46:58 +08:00 committed by Roman Volosovskyi
parent c29c58d044
commit 52746f4363
No known key found for this signature in database
GPG Key ID: 154EBFAC70C8CC3E
2 changed files with 20 additions and 6 deletions

View File

@ -42,6 +42,17 @@
(defstyle my-profile-info-container
{:background-color colors/white})
(defstyle my-profile-settings-logout-wrapper
{:flex-direction :row
:justify-content :space-between
:align-items :center})
(defstyle my-profile-settings-logout
{:min-width "50%"})
(defstyle my-profile-settings-logout-version
{:padding-horizontal 16})
(def advanced-button
{:margin-top 16
:margin-bottom 12})

View File

@ -111,12 +111,15 @@
:action-fn #(re-frame/dispatch [:navigate-to :backup-seed])
:icon-content [components.common/counter {:size 22} 1]}])
[profile.components/settings-item-separator]
[react/view styles/my-profile-settings-logout-wrapper
[react/view styles/my-profile-settings-logout
[profile.components/settings-item {:label-kw :t/logout
:accessibility-label :log-out-button
:value build/version
:destructive? true
:hide-arrow? true
:action-fn #(handle-logout)}]]))
:action-fn #(handle-logout)}]]
[react/view styles/my-profile-settings-logout-version
[react/text build/version]]]]))
(defview advanced [{:keys [network networks dev-mode?]}]
(letsubs [advanced? [:get :my-profile/advanced?]