Skip to content

Commit 60bb12f

Browse files
committed
tweak: augment contact request input to grow until max screen size is reached for the bottom-sheet
1 parent 9a55dfb commit 60bb12f

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

src/status_im/contexts/profile/contact/contact_request/style.cljs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77

88
(def message-input-wrapper
99
{:padding-vertical 8
10+
:flex-shrink 1
11+
:flex-direction :column
1012
:padding-horizontal 20})

src/status_im/contexts/profile/contact/contact_request/view.cljs

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,25 @@
4040
(i18n/label :t/contact-request-message-prompt)]
4141
[rn/view {:style style/message-input-wrapper}
4242
[quo/input
43-
{:type :text
44-
:multiline? true
45-
:char-limit constants/contact-request-message-max-length
46-
:max-length constants/contact-request-message-max-length
47-
:placeholder (i18n/label :t/type-something)
48-
:auto-focus true
49-
:accessibility-label :contact-request-message
50-
:label (i18n/label :t/message)
51-
:on-change-text on-message-change}]]
52-
[quo/bottom-actions
53-
{:actions :one-action
54-
:button-one-props {:disabled? (string/blank? message)
55-
:accessibility-label :send-contact-request
56-
:customization-color customization-color
57-
:on-press on-message-submit}
58-
:button-one-label (i18n/label :t/send-contact-request)}]]))
43+
{:type :text
44+
:multiline? true
45+
:char-limit constants/contact-request-message-max-length
46+
:max-length constants/contact-request-message-max-length
47+
:placeholder (i18n/label :t/type-something)
48+
:auto-focus true
49+
:accessibility-label :contact-request-message
50+
:label (i18n/label :t/message)
51+
:on-change-text on-message-change
52+
:input-style {:flex 1
53+
:min-height "100%"}
54+
:container-style {:flex-shrink 1}
55+
:input-container-style {:flex-shrink 1}}]]
56+
[rn/view {:style {:flex 1}}
57+
[quo/bottom-actions
58+
{:actions :one-action
59+
:button-one-props {:disabled? (string/blank? message)
60+
:accessibility-label :send-contact-request
61+
:customization-color customization-color
62+
:on-press on-message-submit}
63+
:button-one-label (i18n/label :t/send-contact-request)}]]]))
5964

0 commit comments

Comments
 (0)