diff options
author | dan <dan.abramov@gmail.com> | 2024-11-01 22:02:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 22:02:39 +0000 |
commit | 3eb531b00004f3752ec825350df1943c33028ac1 (patch) | |
tree | 9458b24e387cdc5988d332168e042ef7a9c8d1fe /src/view/com/composer/text-input/TextInput.tsx | |
parent | 46004fb2d0afd2bca14fcbd1c45b077d1e3f3c6b (diff) | |
download | voidsky-3eb531b00004f3752ec825350df1943c33028ac1.tar.zst |
Composer UI fixes (#6065)
* Fix close button overlap * Make footer actually sticky on web * Special toast for thread * Only stick to bottom for last post
Diffstat (limited to 'src/view/com/composer/text-input/TextInput.tsx')
-rw-r--r-- | src/view/com/composer/text-input/TextInput.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index b9c9579fb..42d9bfc54 100644 --- a/src/view/com/composer/text-input/TextInput.tsx +++ b/src/view/com/composer/text-input/TextInput.tsx @@ -44,6 +44,7 @@ interface TextInputProps extends ComponentProps<typeof RNTextInput> { richtext: RichText placeholder: string webForceMinHeight: boolean + hasRightPadding: boolean isActive: boolean setRichText: (v: RichText) => void onPhotoPasted: (uri: string) => void @@ -61,6 +62,7 @@ export const TextInput = forwardRef(function TextInputImpl( { richtext, placeholder, + hasRightPadding, setRichText, onPhotoPasted, onNewLink, @@ -232,7 +234,7 @@ export const TextInput = forwardRef(function TextInputImpl( }, [t, richtext, inputTextStyle]) return ( - <View style={[a.flex_1, a.pl_md]}> + <View style={[a.flex_1, a.pl_md, hasRightPadding && a.pr_4xl]}> <PasteInput testID="composerTextInput" ref={textInput} |