From f3c1710415943e0de43d7d11129e919517bc07ff Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 25 Jul 2016 16:20:39 +0300 Subject: [PATCH] #177 fix messages container padding --- src/status_im/chat/styles/screen.cljs | 2 +- src/status_im/chat/views/response.cljs | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/status_im/chat/styles/screen.cljs b/src/status_im/chat/styles/screen.cljs index 49133f8d32..e7ae9e22d9 100644 --- a/src/status_im/chat/styles/screen.cljs +++ b/src/status_im/chat/styles/screen.cljs @@ -16,7 +16,7 @@ (defn messages-container [bottom] {:flex 1 - :bottom bottom}) + :padding-bottom bottom}) (def toolbar-view {:flexDirection :row diff --git a/src/status_im/chat/views/response.cljs b/src/status_im/chat/views/response.cljs index 57122f11b8..f1378f607f 100644 --- a/src/status_im/chat/views/response.cljs +++ b/src/status_im/chat/views/response.cljs @@ -96,10 +96,11 @@ (defview suggestions-web-view [] [url [:web-view-url]] - [web-view {:source {:uri url} - :java-script-enabled true - :style {:height 300} - :on-navigation-state-change on-navigation-change}]) + (when url + [web-view {:source {:uri url} + :java-script-enabled true + :style {:height 300} + :on-navigation-state-change on-navigation-change}])) (defview placeholder [] [suggestions [:get-content-suggestions]]