diff options
author | Hailey <me@haileyok.com> | 2024-10-28 09:54:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 09:54:18 -0700 |
commit | e1796d7afd23b6f967c73f03b92155b6d8eb4a2f (patch) | |
tree | e2297e1f49fad54ab122a7c05676657e05793f0f /src/components | |
parent | d19c505d8155ee9ab781b5a70447b735915709f3 (diff) | |
download | voidsky-e1796d7afd23b6f967c73f03b92155b6d8eb4a2f.tar.zst |
Limit number of lines in starter pack card (#5973)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/StarterPack/StarterPackCard.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/StarterPack/StarterPackCard.tsx b/src/components/StarterPack/StarterPackCard.tsx index 29cccecc8..0f24566b6 100644 --- a/src/components/StarterPack/StarterPackCard.tsx +++ b/src/components/StarterPack/StarterPackCard.tsx @@ -66,10 +66,16 @@ export function Card({ <View style={[a.flex_row, a.gap_sm]}> {!noIcon ? <StarterPack width={40} gradient="sky" /> : null} <View style={[a.flex_1]}> - <Text emoji style={[a.text_md, a.font_bold, a.leading_snug]}> + <Text + emoji + style={[a.text_md, a.font_bold, a.leading_snug]} + numberOfLines={2}> {record.name} </Text> - <Text emoji style={[a.leading_snug, t.atoms.text_contrast_medium]}> + <Text + emoji + style={[a.leading_snug, t.atoms.text_contrast_medium]} + numberOfLines={1}> {creator?.did === currentAccount?.did ? _(msg`Starter pack by you`) : _(msg`Starter pack by ${sanitizeHandle(creator.handle, '@')}`)} |