[Communities] Account selection: сan't see the entire text of the community rules (#18761)

Resolved the scrolling issue pertaining to community rules. Additionally, will ensure compatibility with iOS devices lacking safe-area-view in the follow-up.
This commit is contained in:
Flavio Fraschetti 2024-02-18 08:03:52 -03:00 committed by GitHub
parent 456ccb4c69
commit bfed36d19f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 13 deletions

View File

@ -7,10 +7,6 @@
(def container (def container
{:flex 1}) {:flex 1})
(def page-top
{:padding-vertical 12
:padding-horizontal screen-horizontal-padding})
(def section-title (def section-title
{:padding-top 12 {:padding-top 12
:padding-bottom 4 :padding-bottom 4
@ -18,11 +14,6 @@
(defn bottom-actions (defn bottom-actions
[] []
{:position :absolute {:padding-top 12
:background-color (colors/theme-colors colors/white colors/neutral-95)
:bottom 0
:left 0
:right 0
:padding-horizontal screen-horizontal-padding :padding-horizontal screen-horizontal-padding
:padding-vertical 12 :background-color (colors/theme-colors colors/white colors/neutral-95)})
:flex 1})

View File

@ -28,7 +28,7 @@
highest-role-text (i18n/label (communities.utils/role->translation-key highest-role-text (i18n/label (communities.utils/role->translation-key
highest-permission-role highest-permission-role
:t/member))] :t/member))]
[rn/view {:style style/container} [rn/safe-area-view {:style style/container}
[quo/page-nav [quo/page-nav
{:text-align :left {:text-align :left
:icon-name :i/close :icon-name :i/close

View File

@ -3,5 +3,6 @@
(def community-rule (def community-rule
{:flex 1 {:flex 1
:align-items :flex-start :align-items :flex-start
:padding-vertical 8 :padding-top 8
:margin-bottom 12
:padding-horizontal 20}) :padding-horizontal 20})