Skip to content

Commit

Permalink
fixed: spacing between the header and illustration on biometrics page
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-mut authored Jan 16, 2024
1 parent 72d8c44 commit 02b8d21
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
10 changes: 8 additions & 2 deletions src/status_im/contexts/onboarding/enable_biometrics/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

(def default-margin 20)

(def title-container
{:margin-horizontal 20
:padding-vertical 12})

(defn page-container
[insets]
{:flex 1
Expand All @@ -10,8 +14,10 @@

(defn page-illustration
[width]
{:flex 1
:width width})
{:flex 1
:padding-top 12
:padding-bottom 10
:width width})

(defn buttons
[insets]
Expand Down
11 changes: 7 additions & 4 deletions src/status_im/contexts/onboarding/enable_biometrics/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(defn page-title
[]
[quo/text-combinations
{:container-style {:margin-top 12 :margin-horizontal 20}
{:container-style style/title-container
:title (i18n/label :t/enable-biometrics)
:title-accessibility-label :enable-biometrics-title
:description (i18n/label :t/use-biometrics)
Expand Down Expand Up @@ -51,9 +51,12 @@
(defn enable-biometrics-parallax
[]
(let [stretch (if rn/small-screen? 25 40)]
[parallax/video
{:layers (:biometrics resources/parallax-video)
:stretch stretch}]))
[rn/view
{:position :absolute
:top 12}
[parallax/video
{:layers (:biometrics resources/parallax-video)
:stretch stretch}]]))

(defn enable-biometrics-simple
[]
Expand Down

0 comments on commit 02b8d21

Please sign in to comment.