diff options
author | dan <dan.abramov@gmail.com> | 2024-10-28 19:12:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 19:12:15 +0000 |
commit | dcc5405e8a76037763950f2598721a30bb7934aa (patch) | |
tree | 0588f463a12ea9d33f67aa4ecbf290e5aa7a36fd /src/view/com/composer/text-input/TextInput.tsx | |
parent | 5bce043e1ebad182b06f63daab8b7e397771578e (diff) | |
download | voidsky-dcc5405e8a76037763950f2598721a30bb7934aa.tar.zst |
Make composer min height conditional and align attachments (#5976)
* Make web composer min height condiitonal * Fix alignment * Fix alignment on mobile
Diffstat (limited to 'src/view/com/composer/text-input/TextInput.tsx')
-rw-r--r-- | src/view/com/composer/text-input/TextInput.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index 11bbf13d2..5d8c49abf 100644 --- a/src/view/com/composer/text-input/TextInput.tsx +++ b/src/view/com/composer/text-input/TextInput.tsx @@ -43,6 +43,7 @@ export interface TextInputRef { interface TextInputProps extends ComponentProps<typeof RNTextInput> { richtext: RichText placeholder: string + webForceMinHeight: boolean setRichText: (v: RichText) => void onPhotoPasted: (uri: string) => void onPressPublish: (richtext: RichText) => void @@ -230,7 +231,7 @@ export const TextInput = forwardRef(function TextInputImpl( }, [t, richtext, inputTextStyle]) return ( - <View style={[a.flex_1, a.pl_md, a.pb_2xl]}> + <View style={[a.flex_1, a.pl_md]}> <PasteInput testID="composerTextInput" ref={textInput} @@ -244,7 +245,7 @@ export const TextInput = forwardRef(function TextInputImpl( allowFontScaling multiline scrollEnabled={false} - numberOfLines={4} + numberOfLines={2} style={[ inputTextStyle, a.w_full, |