mirror of
https://github.com/status-im/status-react.git
synced 2025-01-17 22:42:16 +00:00
fix custom fee bottom sheet
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
dd3ded8656
commit
9b3fb2ac69
@ -47,7 +47,11 @@
|
|||||||
{window-height :height} (rn/use-window-dimensions)
|
{window-height :height} (rn/use-window-dimensions)
|
||||||
{:keys [keyboard-shown
|
{:keys [keyboard-shown
|
||||||
keyboard-height]} (rn/use-keyboard)
|
keyboard-height]} (rn/use-keyboard)
|
||||||
|
keyboard-height-android-delta (if (and platform/android? keyboard-shown) (+ keyboard-height 20) 0)
|
||||||
safe-area (safe-area/use-safe-area)
|
safe-area (safe-area/use-safe-area)
|
||||||
|
window-height (- window-height (if platform/android?
|
||||||
|
(+ 50 keyboard-height-android-delta)
|
||||||
|
0))
|
||||||
min-height (+ (* styles/vertical-padding 2) (:bottom safe-area))
|
min-height (+ (* styles/vertical-padding 2) (:bottom safe-area))
|
||||||
max-height (- window-height (:top safe-area) styles/margin-top)
|
max-height (- window-height (:top safe-area) styles/margin-top)
|
||||||
visible (react/state false)
|
visible (react/state false)
|
||||||
@ -199,7 +203,7 @@
|
|||||||
{:opacity opacity
|
{:opacity opacity
|
||||||
:background-color (:backdrop @colors/theme)}))}]]
|
:background-color (:backdrop @colors/theme)}))}]]
|
||||||
[animated/view {:style (merge (styles/content-container window-height)
|
[animated/view {:style (merge (styles/content-container window-height)
|
||||||
{:transform [{:translateY translate-y}
|
{:transform [{:translateY (animated/add translate-y keyboard-height-android-delta)}
|
||||||
{:translateY (* window-height 2)}]})}
|
{:translateY (* window-height 2)}]})}
|
||||||
[gesture-handler/pan-gesture-handler (merge on-master-event
|
[gesture-handler/pan-gesture-handler (merge on-master-event
|
||||||
{:ref master-ref
|
{:ref master-ref
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
(money/->wei :gwei (:value-number max-fee-per-gas-edit)))
|
(money/->wei :gwei (:value-number max-fee-per-gas-edit)))
|
||||||
(:value-number gas-edit))
|
(:value-number gas-edit))
|
||||||
(money/bignumber 0))]
|
(money/bignumber 0))]
|
||||||
[react/view
|
[:<>
|
||||||
[react/view {:style {:margin-horizontal 16 :margin-top 8}}
|
[react/view {:style {:margin-horizontal 16 :margin-top 8}}
|
||||||
[react/text {:style {:typography :title-bold}} (i18n/label :t/max-priority-fee)]
|
[react/text {:style {:typography :title-bold}} (i18n/label :t/max-priority-fee)]
|
||||||
[react/text {:style {:color (colors/get-color :text-02)
|
[react/text {:style {:color (colors/get-color :text-02)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user