mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Would adding View helps #472 ?
This commit is contained in:
@ -257,13 +257,17 @@ const ScreenCompose: React.FC<RootStackScreenProps<'Screen-Compose'>> = ({
|
|||||||
() => (
|
() => (
|
||||||
<HeaderRight
|
<HeaderRight
|
||||||
type='text'
|
type='text'
|
||||||
content={
|
content={t(
|
||||||
params?.type
|
`heading.right.button.${
|
||||||
? params.type === 'conversation' && params.visibility === 'direct'
|
(params?.type &&
|
||||||
? t(`heading.right.button.${params.type}`)
|
(params.type === 'conversation'
|
||||||
: t('heading.right.button.default')
|
? params.visibility === 'direct'
|
||||||
: t('heading.right.button.default')
|
? params.type
|
||||||
}
|
: 'default'
|
||||||
|
: params.type)) ||
|
||||||
|
'default'
|
||||||
|
}`
|
||||||
|
)}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
composeDispatch({ type: 'posting', payload: true })
|
composeDispatch({ type: 'posting', payload: true })
|
||||||
|
|
||||||
|
@ -13,13 +13,13 @@ const ComposeRootFooter: React.FC<Props> = ({ accessibleRefAttachments }) => {
|
|||||||
const { composeState } = useContext(ComposeContext)
|
const { composeState } = useContext(ComposeContext)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<View>
|
||||||
{composeState.attachments.uploads.length ? (
|
{composeState.attachments.uploads.length ? (
|
||||||
<ComposeAttachments accessibleRefAttachments={accessibleRefAttachments} />
|
<ComposeAttachments accessibleRefAttachments={accessibleRefAttachments} />
|
||||||
) : null}
|
) : null}
|
||||||
{composeState.poll.active ? <ComposePoll /> : null}
|
{composeState.poll.active ? <ComposePoll /> : null}
|
||||||
{composeState.replyToStatus ? <ComposeReply /> : null}
|
{composeState.replyToStatus ? <ComposeReply /> : null}
|
||||||
</>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,13 +11,10 @@ import ComposeTextInput from './Header/TextInput'
|
|||||||
const ComposeRootHeader: React.FC = () => {
|
const ComposeRootHeader: React.FC = () => {
|
||||||
const { composeState } = useContext(ComposeContext)
|
const { composeState } = useContext(ComposeContext)
|
||||||
const instanceActive = useSelector(getInstanceActive)
|
const instanceActive = useSelector(getInstanceActive)
|
||||||
const localInstances = useSelector(
|
const localInstances = useSelector(getInstances, (prev, next) => prev.length === next.length)
|
||||||
getInstances,
|
|
||||||
(prev, next) => prev.length === next.length
|
|
||||||
)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<View>
|
||||||
{instanceActive !== -1 && localInstances.length > 1 ? (
|
{instanceActive !== -1 && localInstances.length > 1 ? (
|
||||||
<View style={styles.postingAs}>
|
<View style={styles.postingAs}>
|
||||||
<ComposePostingAs />
|
<ComposePostingAs />
|
||||||
@ -25,7 +22,7 @@ const ComposeRootHeader: React.FC = () => {
|
|||||||
) : null}
|
) : null}
|
||||||
{composeState.spoiler.active ? <ComposeSpoilerInput /> : null}
|
{composeState.spoiler.active ? <ComposeSpoilerInput /> : null}
|
||||||
<ComposeTextInput />
|
<ComposeTextInput />
|
||||||
</>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,11 +28,9 @@ const ComposeTextInput: React.FC = () => {
|
|||||||
<PasteInput
|
<PasteInput
|
||||||
keyboardAppearance={mode}
|
keyboardAppearance={mode}
|
||||||
style={{
|
style={{
|
||||||
...StyleConstants.FontStyle.M,
|
|
||||||
marginTop: StyleConstants.Spacing.S,
|
marginTop: StyleConstants.Spacing.S,
|
||||||
paddingBottom: StyleConstants.Spacing.M,
|
paddingBottom: StyleConstants.Spacing.M,
|
||||||
marginLeft: StyleConstants.Spacing.Global.PagePadding,
|
marginHorizontal: StyleConstants.Spacing.Global.PagePadding,
|
||||||
marginRight: StyleConstants.Spacing.Global.PagePadding,
|
|
||||||
color: colors.primaryDefault,
|
color: colors.primaryDefault,
|
||||||
borderBottomColor: colors.border,
|
borderBottomColor: colors.border,
|
||||||
fontSize: adaptedFontsize,
|
fontSize: adaptedFontsize,
|
||||||
|
Reference in New Issue
Block a user