Fix gwei input styles

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Stepan Lusnikov 2018-05-02 15:51:05 +08:00 committed by Julien Eluard
parent 90eb2aaaa1
commit 8636dea67a
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
3 changed files with 11 additions and 8 deletions

View File

@ -18,6 +18,7 @@
(def text-input (def text-input
(merge text-content (merge text-content
{:font-size 15 {:font-size 15
:flex 1
:padding-bottom 0 :padding-bottom 0
:padding-top 0 :padding-top 0
:height 52 :height 52

View File

@ -74,9 +74,10 @@
{:margin-top 24 {:margin-top 24
:margin-bottom 16}) :margin-bottom 16})
(def advanced-options-wrapper (def gas-input-wrapper
{:align-items :center {:align-items :center
:flex-direction :row}) :justify-content :space-between
:flex-direction :row})
(def advanced-options-text-wrapper (def advanced-options-text-wrapper
{:flex 1 {:flex 1

View File

@ -126,13 +126,14 @@
[react/view {:flex-direction :row} [react/view {:flex-direction :row}
[wallet.components/cartouche {} [wallet.components/cartouche {}
(i18n/label :t/gas-limit) (i18n/label :t/gas-limit)
[react/text-input (merge styles/transaction-fee-input [react/view styles/gas-input-wrapper
{:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas %]) [react/text-input (merge styles/transaction-fee-input
:default-value (str (money/to-fixed gas)) {:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas %])
:accessibility-label :gas-limit-input})]] :default-value (str (money/to-fixed gas))
:accessibility-label :gas-limit-input})]]]
[wallet.components/cartouche {} [wallet.components/cartouche {}
(i18n/label :t/gas-price) (i18n/label :t/gas-price)
[react/view styles/advanced-options-wrapper [react/view styles/gas-input-wrapper
[react/text-input (merge styles/transaction-fee-input [react/text-input (merge styles/transaction-fee-input
{:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas-price (money/->wei :gwei %)]) {:on-change-text #(re-frame/dispatch [:wallet.send/edit-gas-price (money/->wei :gwei %)])
:default-value (str (money/to-fixed (money/wei-> :gwei gas-price))) :default-value (str (money/to-fixed (money/wei-> :gwei gas-price)))