mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 10:46:21 +00:00
fix message offset
Former-commit-id: 026b678e2079a1e0216307a41a0efba8e064bdab
This commit is contained in:
parent
e90ecc5ce9
commit
579269ebca
@ -43,7 +43,7 @@
|
|||||||
type (get-in db path)]
|
type (get-in db path)]
|
||||||
(if (= :response type)
|
(if (= :response type)
|
||||||
minimum-suggestion-height
|
minimum-suggestion-height
|
||||||
minimum-command-suggestions-height)))
|
0.1)))
|
||||||
|
|
||||||
(register-handler :animate-show-response
|
(register-handler :animate-show-response
|
||||||
[(after #(dispatch [:command-edit-mode]))]
|
[(after #(dispatch [:command-edit-mode]))]
|
||||||
|
@ -131,11 +131,12 @@
|
|||||||
(fn []
|
(fn []
|
||||||
(let [command? (subscribe [:command?])
|
(let [command? (subscribe [:command?])
|
||||||
command (subscribe [:get-chat-command])
|
command (subscribe [:get-chat-command])
|
||||||
|
command-suggestions (subscribe [:get-content-suggestions])
|
||||||
suggestions (subscribe [:get-suggestions])]
|
suggestions (subscribe [:get-suggestions])]
|
||||||
;; todo fix magic values
|
|
||||||
(reaction
|
(reaction
|
||||||
(let [type (:type @command)]
|
(let [type (:type @command)]
|
||||||
(cond (and @command? (= type :response)) c/request-info-height
|
(cond (and @command? (= type :response)) c/request-info-height
|
||||||
(and @command? (= type :command)) c/suggestions-header-height
|
(and @command? (= type :command) (seq @command-suggestions))
|
||||||
|
c/suggestions-header-height
|
||||||
(seq @suggestions) c/suggestions-header-height
|
(seq @suggestions) c/suggestions-header-height
|
||||||
:else 0))))))
|
:else 0))))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user