diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-31 18:43:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 10:43:04 -0500 |
commit | 22e1eb18c81b6f41927bc86d4726223c2634e19e (patch) | |
tree | 1fbd17678b2922667affa895270dff1f634216e0 /src/view/com/util/post-embeds/index.tsx | |
parent | 8eb3cebb362cc438e368a9fbb78e2f85403ffeed (diff) | |
download | voidsky-22e1eb18c81b6f41927bc86d4726223c2634e19e.tar.zst |
[🐴] Record message (#4230)
* send record via link in text * re-trim text after removing link * record message * only show copy text if message + add translate * reduce padding * adjust padding * Tweak spacing * Stop clickthrough for hidden content * Update bg to show labels --------- Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/view/com/util/post-embeds/index.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/index.tsx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/view/com/util/post-embeds/index.tsx b/src/view/com/util/post-embeds/index.tsx index d8ef6e6ab..962f3d8c5 100644 --- a/src/view/com/util/post-embeds/index.tsx +++ b/src/view/com/util/post-embeds/index.tsx @@ -4,6 +4,7 @@ import { StyleProp, StyleSheet, Text, + TextStyle, View, ViewStyle, } from 'react-native' @@ -41,11 +42,13 @@ export function PostEmbeds({ moderation, onOpen, style, + quoteTextStyle, }: { embed?: Embed moderation?: ModerationDecision onOpen?: () => void style?: StyleProp<ViewStyle> + quoteTextStyle?: StyleProp<TextStyle> }) { const pal = usePalette('default') const {openLightbox} = useLightboxControls() @@ -60,7 +63,11 @@ export function PostEmbeds({ moderation={moderation} onOpen={onOpen} /> - <MaybeQuoteEmbed embed={embed.record} onOpen={onOpen} /> + <MaybeQuoteEmbed + embed={embed.record} + onOpen={onOpen} + textStyle={quoteTextStyle} + /> </View> ) } @@ -87,7 +94,14 @@ export function PostEmbeds({ // quote post // = - return <MaybeQuoteEmbed embed={embed} style={style} onOpen={onOpen} /> + return ( + <MaybeQuoteEmbed + embed={embed} + style={style} + textStyle={quoteTextStyle} + onOpen={onOpen} + /> + ) } // image embed |