parent
9e994a767e
commit
459ce93220
|
@ -23,7 +23,8 @@ function suggestionsContainerStyle(suggestionsCount) {
|
||||||
marginHorizontal: 0,
|
marginHorizontal: 0,
|
||||||
height: Math.min(150, (56 * suggestionsCount)),
|
height: Math.min(150, (56 * suggestionsCount)),
|
||||||
backgroundColor: "white",
|
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(
|
var view = status.components.scrollView(
|
||||||
suggestionsContainerStyle(ph.length),
|
suggestionsContainerStyle(ph.length),
|
||||||
suggestions
|
suggestions
|
||||||
|
|
|
@ -16,4 +16,4 @@
|
||||||
(def datemark-text
|
(def datemark-text
|
||||||
{:color "#838c93"
|
{:color "#838c93"
|
||||||
:top 4
|
:top 4
|
||||||
:font-size 12})
|
:font-size 12})
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
(def message-datemark
|
(def message-datemark
|
||||||
{:margin-top 10
|
{:margin-top 10
|
||||||
:margin-bottom -4})
|
:height 34})
|
||||||
|
|
||||||
(def message-empty-spacing
|
(def message-empty-spacing
|
||||||
{:height 16})
|
{:height 16})
|
||||||
|
@ -249,9 +249,9 @@
|
||||||
{:marginTop 20})
|
{:marginTop 20})
|
||||||
|
|
||||||
(def status-from
|
(def status-from
|
||||||
{:marginTop 20
|
{:marginTop 20
|
||||||
:fontSize 18
|
:fontSize 18
|
||||||
:color text1-color})
|
:color text1-color})
|
||||||
|
|
||||||
(def status-text
|
(def status-text
|
||||||
{:marginTop 10
|
{:marginTop 10
|
||||||
|
|
|
@ -140,8 +140,7 @@
|
||||||
:bounces false
|
:bounces false
|
||||||
:on-navigation-state-change on-navigation-change}]))
|
:on-navigation-state-change on-navigation-change}]))
|
||||||
|
|
||||||
(defview placeholder []
|
(defn placeholder []
|
||||||
[suggestions [:get-content-suggestions]]
|
|
||||||
[view st/input-placeholder])
|
[view st/input-placeholder])
|
||||||
|
|
||||||
(defview response-suggestions-view []
|
(defview response-suggestions-view []
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
(ns status-im.utils.utils
|
(ns status-im.utils.utils
|
||||||
(:require-macros
|
|
||||||
[natal-shell.async-storage :refer [get-item set-item]])
|
|
||||||
(:require [status-im.constants :as const]
|
(:require [status-im.constants :as const]
|
||||||
[reagent.core :as r]))
|
[reagent.core :as r]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue