[#7859] Allow to select chat item below plus button

This commit is contained in:
Roman Volosovskyi 2019-05-01 09:31:48 +03:00
parent 8dc7c8986e
commit 3b90be2477
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 24 additions and 22 deletions

View File

@ -179,12 +179,11 @@
{:position :absolute
:align-items :center
:bottom (+ tabs.styles/tabs-diff 6)
:right 0
:left 0})
:width 40
:height 40})
(def action-button
{:margin 10
:width 40
{:width 40
:height 40
:background-color colors/blue
:border-radius 20

View File

@ -118,29 +118,32 @@
(when loading? (utils/set-timeout #(re-frame/dispatch [:init-rest-of-chats]) 100))))}
[react/view {:flex 1}
[status-bar/status-bar {:type :main}]
[react/keyboard-avoiding-view {:style {:flex 1}
[react/keyboard-avoiding-view {:style {:flex 1
:align-items :center}
:on-layout (fn [e]
(re-frame/dispatch
[:set-once :content-layout-height
(-> e .-nativeEvent .-layout .-height)]))}
[toolbar/toolbar nil nil [toolbar/content-title (i18n/label :t/chat)]]
[les-debug-info]
(cond loading?
[react/view {:style {:flex 1
:justify-content :center
:align-items :center}}
[connectivity/connectivity-view]
[react/activity-indicator {:flex 1
:animating true}]]
[react/view {:style {:flex 1
:align-self :stretch}}
[toolbar/toolbar nil nil [toolbar/content-title (i18n/label :t/chat)]]
[les-debug-info]
(cond loading?
[react/view {:style {:flex 1
:justify-content :center
:align-items :center}}
[connectivity/connectivity-view]
[react/activity-indicator {:flex 1
:animating true}]]
:else
[react/view {:style {:flex 1}}
[connectivity/connectivity-view]
[filter.views/animated-search-input search-filter]
(if (and (not search-filter)
(empty? all-home-items))
[home-empty-view]
[home-items-view search-filter chats all-home-items])])
:else
[react/view {:style {:flex 1}}
[connectivity/connectivity-view]
[filter.views/animated-search-input search-filter]
(if (and (not search-filter)
(empty? all-home-items))
[home-empty-view]
[home-items-view search-filter chats all-home-items])])]
[home-action-button]]]))
(views/defview home-wrapper []