Skip to content

Commit

Permalink
[🐴] A few tweaks to message input on native (#4035)
Browse files Browse the repository at this point in the history
* tweaks

* only apply the padding on ios

* use a hitslop of 10 instead

* version bump
  • Loading branch information
haileyok authored May 16, 2024
1 parent aded49f commit 9499d43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bsky.app",
"version": "1.82.0",
"version": "1.83.0",
"private": true,
"engines": {
"node": ">=18"
Expand Down
10 changes: 9 additions & 1 deletion src/screens/Messages/Conversation/MessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
useMessageDraft,
useSaveMessageDraft,
} from '#/state/messages/message-drafts'
import {isIOS} from 'platform/detection'
import * as Toast from '#/view/com/util/Toast'
import {atoms as a, useTheme} from '#/alf'
import {PaperPlane_Stroke2_Corner0_Rounded as PaperPlane} from '#/components/icons/PaperPlane'
Expand Down Expand Up @@ -97,13 +98,20 @@ export function MessageInput({
value={message}
multiline={true}
onChangeText={setMessage}
style={[a.flex_1, a.text_md, a.px_sm, t.atoms.text, {maxHeight}]}
style={[
a.flex_1,
a.text_md,
a.px_sm,
t.atoms.text,
{maxHeight, paddingBottom: isIOS ? 5 : 0},
]}
keyboardAppearance={t.name === 'light' ? 'light' : 'dark'}
scrollEnabled={isInputScrollable}
blurOnSubmit={false}
onFocus={scrollToEnd}
onContentSizeChange={onInputLayout}
ref={inputRef}
hitSlop={HITSLOP_10}
/>
<Pressable
accessibilityRole="button"
Expand Down

0 comments on commit 9499d43

Please sign in to comment.