put videos above quotes and animate
This commit is contained in:
@@ -731,21 +731,10 @@ export const ComposePost = observer(function ComposePost({
|
|||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<View style={[a.mt_md]}>
|
|
||||||
{quote ? (
|
|
||||||
<View style={[s.mt5, s.mb2, isWeb && s.mb10]}>
|
|
||||||
<View style={{pointerEvents: 'none'}}>
|
|
||||||
<QuoteEmbed quote={quote} />
|
|
||||||
</View>
|
|
||||||
{quote.uri !== initQuote?.uri && (
|
|
||||||
<QuoteX onRemove={() => setQuote(undefined)} />
|
|
||||||
)}
|
|
||||||
</View>
|
|
||||||
) : null}
|
|
||||||
<LayoutAnimationConfig skipExiting>
|
<LayoutAnimationConfig skipExiting>
|
||||||
{(videoUploadState.asset || videoUploadState.video) && (
|
{(videoUploadState.asset || videoUploadState.video) && (
|
||||||
<Animated.View
|
<Animated.View
|
||||||
style={[a.w_full, a.mt_xs]}
|
style={[a.w_full, a.mt_md]}
|
||||||
entering={native(ZoomIn)}
|
entering={native(ZoomIn)}
|
||||||
exiting={native(ZoomOut)}>
|
exiting={native(ZoomOut)}>
|
||||||
{videoUploadState.asset &&
|
{videoUploadState.asset &&
|
||||||
@@ -772,7 +761,19 @@ export const ComposePost = observer(function ComposePost({
|
|||||||
</Animated.View>
|
</Animated.View>
|
||||||
)}
|
)}
|
||||||
</LayoutAnimationConfig>
|
</LayoutAnimationConfig>
|
||||||
|
|
||||||
|
<Animated.View style={a.mt_md} layout={native(LinearTransition)}>
|
||||||
|
{quote ? (
|
||||||
|
<View style={[s.mt5, s.mb2, isWeb && s.mb10]}>
|
||||||
|
<View style={{pointerEvents: 'none'}}>
|
||||||
|
<QuoteEmbed quote={quote} />
|
||||||
</View>
|
</View>
|
||||||
|
{quote.uri !== initQuote?.uri && (
|
||||||
|
<QuoteX onRemove={() => setQuote(undefined)} />
|
||||||
|
)}
|
||||||
|
</View>
|
||||||
|
) : null}
|
||||||
|
</Animated.View>
|
||||||
</Animated.ScrollView>
|
</Animated.ScrollView>
|
||||||
<SuggestedLanguage text={richtext.text} />
|
<SuggestedLanguage text={richtext.text} />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user