Make composer min height conditional and align attachments (#5976)
* Make web composer min height condiitonal * Fix alignment * Fix alignment on mobile
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user