Skip to content

Commit

Permalink
Adjust select-key-storage on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Vlasov committed Oct 7, 2019
1 parent 38e6862 commit 7778596
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/status_im/ui/screens/intro/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@

(defn choose-key [{:keys [multiaccounts selected-id view-height]}]
[react/scroll-view {:content-container-style {:flex 1
:flex-grow 1
:justify-content :flex-end
;; We have to align top multiaccount entry
;; with top key storage entry on the next screen
Expand Down Expand Up @@ -204,9 +203,9 @@
:justify-content :flex-end
;; We have to align top storage entry
;; with top multiaccount entry on the previous screen
:margin-bottom (+ (- 322 226) (if (< view-height 600)
-20
(/ view-height 12)))}}
:margin-bottom (if (< view-height 600)
40
(+ (- 322 226) (/ view-height 12)))}}
[storage-entry (first storage-types) selected-storage-type]
[react/view {:style {:min-height 16 :max-height 16}}]
[storage-entry (second storage-types) selected-storage-type]]))
Expand Down

0 comments on commit 7778596

Please sign in to comment.