Skip to content

Commit

Permalink
Fix iOS modal presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Jan 11, 2025
1 parent 094651f commit b36ecfe
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 33 deletions.
7 changes: 1 addition & 6 deletions src/status_im/contexts/profile/edit/modal/style.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@
(when platform/android? {:padding-bottom 12})))

(def page-container
{:position :absolute
:top 0
:bottom 0
:left 0
:right 0
:z-index 100})
{:flex 1})

(def info-message
{:margin-top 8})
Expand Down
51 changes: 26 additions & 25 deletions src/status_im/contexts/profile/edit/modal/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -238,28 +238,29 @@
:new-name? (and (not= initial-display-name @display-name)
(seq @display-name))
:valid-name? valid-name?}))]
[rn/view {:style style/page-container}
[quo/page-nav
{:margin-top top
:background :blur
:icon-name :i/close
:on-press on-close}]
[content
{:profile-image @profile-image
:custom-color @custom-color
:display-name @display-name
:validation-msg @validation-msg
:valid-name? valid-name?
:name-too-short? name-too-short?
:picture-picker picture-picker
:initial-display-name initial-display-name
:set-scroll set-scroll
:set-scroll-height set-scroll-height
:set-custom-color set-custom-color
:set-display-name set-display-name
:set-validation-msg set-validation-msg}]
[floating-button
{:custom-color @custom-color
:scroll-y @scroll-y
:on-submit update-profile
:disabled? disabled?}]]))))
[quo/overlay {:type :shell}
[rn/view {:style style/page-container}
[quo/page-nav
{:margin-top top
:background :blur
:icon-name :i/close
:on-press on-close}]
[content
{:profile-image @profile-image
:custom-color @custom-color
:display-name @display-name
:validation-msg @validation-msg
:valid-name? valid-name?
:name-too-short? name-too-short?
:picture-picker picture-picker
:initial-display-name initial-display-name
:set-scroll set-scroll
:set-scroll-height set-scroll-height
:set-custom-color set-custom-color
:set-display-name set-display-name
:set-validation-msg set-validation-msg}]
[floating-button
{:custom-color @custom-color
:scroll-y @scroll-y
:on-submit update-profile
:disabled? disabled?}]]]))))
4 changes: 2 additions & 2 deletions src/status_im/navigation/screens.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,8 @@
:component profiles/view}

{:name :screen/profile.edit-profile-modal
:options {:theme :dark
:layout options/onboarding-layout}
:metrics {:track? true}
:options options/transparent-screen-options
:component edit-profile-modal/view}]

[{:name :shell
Expand Down

0 comments on commit b36ecfe

Please sign in to comment.