Skip to content

Commit

Permalink
tidy: use bottom-inset for padding key-pair and accounts list
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed May 9, 2024
1 parent 6d6b0d1 commit 0d92c0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
:margin-vertical 12})

(defn page-wrapper
[inset-top]
{:padding-top inset-top
[top-inset]
{:padding-top top-inset
:flex 1})

(defn list-container
[bottom-inset]
{:padding-bottom bottom-inset})

(def keypair-container-style
{:margin-horizontal 20
:margin-vertical 8})
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@

(defn view
[]
(let [inset-top (safe-area/get-top)
(let [insets (safe-area/get-insets)
compressed-key (rf/sub [:profile/compressed-key])
profile-picture (rf/sub [:profile/image])
customization-color (rf/sub [:profile/customization-color])
keypairs (rf/sub [:wallet/keypairs])]
[quo/overlay
{:type :shell
:container-style (style/page-wrapper inset-top)}
:container-style (style/page-wrapper (:top insets))}
[quo/page-nav
{:key :header
:background :blur
Expand All @@ -102,4 +102,4 @@
:render-data {:profile-picture profile-picture
:compressed-key compressed-key
:customization-color customization-color}
:content-container-style {:padding-bottom 60}}]]]))
:content-container-style (style/list-container (:bottom insets))}]]]))

0 comments on commit 0d92c0b

Please sign in to comment.