diff options
author | Hailey <me@haileyok.com> | 2024-05-16 08:09:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 08:09:14 -0700 |
commit | 9499d4343db3107ef97243894d7310e3de3daa60 (patch) | |
tree | 28a2fe13fa69535262110b1efa2973db13f7e6f1 | |
parent | aded49f65b09fc06ad07831df527da017e75bcec (diff) | |
download | voidsky-9499d4343db3107ef97243894d7310e3de3daa60.tar.zst |
[🐴] A few tweaks to message input on native (#4035)
* tweaks * only apply the padding on ios * use a hitslop of 10 instead * version bump
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/screens/Messages/Conversation/MessageInput.tsx | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/package.json b/package.json index 0a52aa97b..9f1444d9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bsky.app", - "version": "1.82.0", + "version": "1.83.0", "private": true, "engines": { "node": ">=18" diff --git a/src/screens/Messages/Conversation/MessageInput.tsx b/src/screens/Messages/Conversation/MessageInput.tsx index 2b3ee45df..632544723 100644 --- a/src/screens/Messages/Conversation/MessageInput.tsx +++ b/src/screens/Messages/Conversation/MessageInput.tsx @@ -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' @@ -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" |