From d9be5a77b3df775e3a5ef1054810d022543b05c0 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Wed, 6 Jul 2016 09:26:28 +0300 Subject: [PATCH] centered account list Former-commit-id: 88e5a0c9d897863308f829beff5cdcf167fc78f8 --- src/status_im/accounts/screen.cljs | 16 ++++++++-------- src/status_im/accounts/styles.cljs | 11 ++++++++--- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/status_im/accounts/screen.cljs b/src/status_im/accounts/screen.cljs index 8c3f22101b..a11cfcab3b 100644 --- a/src/status_im/accounts/screen.cljs +++ b/src/status_im/accounts/screen.cljs @@ -60,13 +60,13 @@ :custom-content toolbar-title :action {:image {:style icon-search} :handler #()}}] - - [view st/account-list-container - [list-view {:dataSource (lw/to-datasource accounts) - :enableEmptySections true - :renderRow render-row - :renderSeparator render-separator - :style st/account-list}]] + [view st/accounts-container + [view st/account-list-view-container + [list-view {:dataSource (lw/to-datasource accounts) + :enableEmptySections true + :renderRow render-row + ;:renderSeparator render-separator + :style st/account-list}]]] [view st/add-account-button-container [touchable-highlight {:on-press create-account} [view st/add-account-button @@ -78,4 +78,4 @@ ;(re-frame.core/dispatch [:set :view-id :users]) ;{:name (label :t/add-account) ;:address "0x0" -;:photo-path :icon_plus} \ No newline at end of file +;:photo-path :icon_plus} diff --git a/src/status_im/accounts/styles.cljs b/src/status_im/accounts/styles.cljs index 823d511c50..ab20bcd40e 100644 --- a/src/status_im/accounts/styles.cljs +++ b/src/status_im/accounts/styles.cljs @@ -26,9 +26,14 @@ :left 0 :justifyContent :center}) -(def account-list-container - {:flex 1 - :flexDirection :column +(def accounts-container + {:flex 1 + :flex-direction :column + :justifyContent :center + :padding-bottom 56}) + +(def account-list-view-container + {:flexDirection :column :justifyContent :center}) (def account-list