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