[#10694] Amount is not accessible on "Send Transaction" screen when token name is too long
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
376dab37e9
commit
24ef4cbd97
|
@ -34,20 +34,22 @@
|
||||||
(defn asset-selector [{:keys [request? token from]}]
|
(defn asset-selector [{:keys [request? token from]}]
|
||||||
(let [{:keys [name icon color]} token]
|
(let [{:keys [name icon color]} token]
|
||||||
[react/touchable-highlight
|
[react/touchable-highlight
|
||||||
{:on-press (when-not request? #(do
|
{:style {:flex 1}
|
||||||
|
:on-press (when-not request? #(do
|
||||||
(re-frame/dispatch [:dismiss-keyboard])
|
(re-frame/dispatch [:dismiss-keyboard])
|
||||||
(re-frame/dispatch [:bottom-sheet/show-sheet
|
(re-frame/dispatch [:bottom-sheet/show-sheet
|
||||||
{:content (fn [] [sheets/assets (:address from)])
|
{:content (fn [] [sheets/assets (:address from)])
|
||||||
:content-height 300}])))}
|
:content-height 300}])))}
|
||||||
[react/view {:style {:flex-direction :row
|
[react/view {:style {:flex-direction :row
|
||||||
:align-items :center
|
:align-items :center
|
||||||
:margin-left 16}
|
:flex 1 :margin-left 16}
|
||||||
:accessibility-label :choose-asset-button}
|
:accessibility-label :choose-asset-button}
|
||||||
(if icon
|
(if icon
|
||||||
[list/item-image (assoc icon :style {:background-color colors/gray-lighter
|
[list/item-image (assoc icon :style {:background-color colors/gray-lighter
|
||||||
:border-radius 50} :image-style {:width 32 :height 32})]
|
:border-radius 50} :image-style {:width 32 :height 32})]
|
||||||
[chat-icon/custom-icon-view-list name color 32])
|
[chat-icon/custom-icon-view-list name color 32])
|
||||||
[react/text {:style {:margin-left 8}}
|
[react/text {:style {:margin-left 8 :flex-shrink 0.5}
|
||||||
|
:number-of-lines 2}
|
||||||
(wallet.utils/display-symbol token)]
|
(wallet.utils/display-symbol token)]
|
||||||
(when-not request?
|
(when-not request?
|
||||||
[icons/icon :main-icons/dropdown {:color colors/gray}])]]))
|
[icons/icon :main-icons/dropdown {:color colors/gray}])]]))
|
||||||
|
@ -96,6 +98,7 @@
|
||||||
[header {:small-screen? small-screen?
|
[header {:small-screen? small-screen?
|
||||||
:on-cancel #(re-frame/dispatch [:wallet/cancel-transaction-command])}]
|
:on-cancel #(re-frame/dispatch [:wallet/cancel-transaction-command])}]
|
||||||
[react/view {:flex-direction :row :padding-horizontal 24 :align-items :center
|
[react/view {:flex-direction :row :padding-horizontal 24 :align-items :center
|
||||||
|
:flex 1
|
||||||
:margin-vertical (if small-screen? 8 16)}
|
:margin-vertical (if small-screen? 8 16)}
|
||||||
[react/text-input
|
[react/text-input
|
||||||
{:style {:font-size (if small-screen? 24 38)
|
{:style {:font-size (if small-screen? 24 38)
|
||||||
|
|
Loading…
Reference in New Issue