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:
dan
2024-10-28 19:12:15 +00:00
committed by GitHub
parent 5bce043e1e
commit dcc5405e8a
4 changed files with 18 additions and 7 deletions
@@ -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,