diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-03-24 21:11:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-24 12:11:13 -0700 |
commit | dba6f4bb1fd4800f2c0309433bfbb9846e58acc8 (patch) | |
tree | 40ae1a08f018b06bf4dac74af3e8d1b5ffe57062 /src/view/com/composer/Composer.tsx | |
parent | 6a5770ee8919cda072504da4742ccabc7c3d1562 (diff) | |
download | voidsky-dba6f4bb1fd4800f2c0309433bfbb9846e58acc8.tar.zst |
This reverts commit 0014b8b9cd0a5858ea7fad31361e5b611296e912.
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index e8fe1a7ce..e80b80449 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -657,6 +657,7 @@ export const ComposePost = ({ ref={scrollViewRef} layout={native(LinearTransition)} onScroll={scrollHandler} + contentContainerStyle={a.flex_grow} style={a.flex_1} keyboardShouldPersistTaps="always" onContentSizeChange={onScrollViewContentSizeChange} @@ -795,19 +796,22 @@ let ComposerPost = React.memo(function ComposerPost({ ) return ( - <View style={[styles.post, !isActive && styles.inactivePost]}> - <View - style={[ - styles.textInputLayout, - isNative && styles.textInputLayoutMobile, - ]}> + <View + style={[ + a.mx_lg, + !isActive && styles.inactivePost, + isTextOnly && isNative && a.flex_grow, + ]}> + <View style={[a.flex_row, isNative && a.flex_1]}> <UserAvatar avatar={currentProfile?.avatar} size={50} type={currentProfile?.associated?.labeler ? 'labeler' : 'user'} + style={[a.mt_xs]} /> <TextInput ref={textInput} + style={[a.pt_xs]} richtext={richtext} placeholder={selectTextInputPlaceholder} autoFocus @@ -1077,9 +1081,8 @@ function ComposerEmbeds({ </Animated.View> )} </LayoutAnimationConfig> - - <View style={!video ? [a.mt_md] : []}> - {embed.quote?.uri ? ( + {embed.quote?.uri ? ( + <View style={!video ? [a.mt_md] : []}> <View style={[s.mt5, s.mb2, isWeb && s.mb10]}> <View style={{pointerEvents: 'none'}}> <LazyQuoteEmbed uri={embed.quote.uri} /> @@ -1088,8 +1091,8 @@ function ComposerEmbeds({ <QuoteX onRemove={() => dispatch({type: 'embed_remove_quote'})} /> )} </View> - ) : null} - </View> + </View> + ) : null} </> ) } @@ -1469,7 +1472,6 @@ const styles = StyleSheet.create({ marginLeft: 12, }, stickyFooterWeb: { - // @ts-ignore web-only position: 'sticky', bottom: 0, }, @@ -1503,19 +1505,9 @@ const styles = StyleSheet.create({ justifyContent: 'center', marginRight: 5, }, - post: { - marginHorizontal: 16, - }, inactivePost: { opacity: 0.5, }, - textInputLayout: { - flexDirection: 'row', - paddingTop: 4, - }, - textInputLayoutMobile: { - flex: 1, - }, addExtLinkBtn: { borderWidth: 1, borderRadius: 24, |