This commit is contained in:
Roman Volosovskyi 2016-11-12 11:25:48 +02:00
parent 9e994a767e
commit 459ce93220
5 changed files with 16 additions and 10 deletions

View File

@ -23,7 +23,8 @@ function suggestionsContainerStyle(suggestionsCount) {
marginHorizontal: 0,
height: Math.min(150, (56 * suggestionsCount)),
backgroundColor: "white",
borderRadius: 5
borderRadius: 5,
flex: 1
};
}
@ -89,6 +90,14 @@ function phoneSuggestions(params) {
);
});
/*var view = status.components.view(
{style: {flex: 1, flexDirection: "column"}},
[status.components.scrollView(
suggestionsContainerStyle(ph.length),
suggestions
)]
);*/
var view = status.components.scrollView(
suggestionsContainerStyle(ph.length),
suggestions

View File

@ -16,4 +16,4 @@
(def datemark-text
{:color "#838c93"
:top 4
:font-size 12})
:font-size 12})

View File

@ -38,7 +38,7 @@
(def message-datemark
{:margin-top 10
:margin-bottom -4})
:height 34})
(def message-empty-spacing
{:height 16})
@ -249,9 +249,9 @@
{:marginTop 20})
(def status-from
{:marginTop 20
:fontSize 18
:color text1-color})
{:marginTop 20
:fontSize 18
:color text1-color})
(def status-text
{:marginTop 10

View File

@ -140,8 +140,7 @@
:bounces false
:on-navigation-state-change on-navigation-change}]))
(defview placeholder []
[suggestions [:get-content-suggestions]]
(defn placeholder []
[view st/input-placeholder])
(defview response-suggestions-view []

View File

@ -1,6 +1,4 @@
(ns status-im.utils.utils
(:require-macros
[natal-shell.async-storage :refer [get-item set-item]])
(:require [status-im.constants :as const]
[reagent.core :as r]))