flex and truncate content hider text (#2569)

zio/stable
Hailey 2024-01-19 16:12:10 -08:00 committed by GitHub
parent e175984506
commit 5522b581ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ export function ContentHider({
<ShieldExclamation size={18} style={pal.textLight} />
)}
</Pressable>
<Text type="md" style={pal.text}>
<Text type="md" style={[pal.text, {flex: 1}]} numberOfLines={2}>
{desc.name}
</Text>
<View style={styles.showBtn}>
@ -131,7 +131,7 @@ const styles = StyleSheet.create({
cover: {
flexDirection: 'row',
alignItems: 'center',
gap: 4,
gap: 6,
borderRadius: 8,
marginTop: 4,
paddingVertical: 14,