parent
f5464c18bf
commit
6f9881af55
|
@ -153,15 +153,12 @@
|
|||
:backgroundColor (:color command)
|
||||
:transform [{:scale scale}]})
|
||||
|
||||
(defn command-image-view
|
||||
[command]
|
||||
(def command-image-view
|
||||
{:position :absolute
|
||||
:top 0
|
||||
:right 0
|
||||
:width 24
|
||||
:height 24
|
||||
:borderRadius 50
|
||||
:backgroundColor (:color command)
|
||||
:alignItems :center})
|
||||
|
||||
(def command-request-image
|
||||
|
@ -198,7 +195,9 @@
|
|||
(def command-image
|
||||
{:margin-top 5
|
||||
:width 12
|
||||
:height 13})
|
||||
:height 13
|
||||
:tint-color :#a9a9a9cc})
|
||||
|
||||
(def command-text
|
||||
(merge style-message-text
|
||||
{:marginTop 8
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
(str "!" (:name command))]]]
|
||||
;; todo doesn't reflect design
|
||||
(when-let [icon (:icon command)]
|
||||
[view (st/command-image-view command)
|
||||
[view st/command-image-view
|
||||
[image {:source {:uri icon}
|
||||
:style st/command-image}]])
|
||||
(if preview
|
||||
|
|
Loading…
Reference in New Issue