Skip to content

Commit

Permalink
fix card style
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyz0112 committed Sep 30, 2023
1 parent 2db00f0 commit b661acd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/NewsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ function NewsCard(
) {
return (
<Card elevate size="$10" borderRadius="$10" bordered {...props}>
<Card.Header marginTop="$20" paddingVertical="0" paddingHorizontal="$2">
<Card.Header
marginTop="$20"
paddingVertical="0"
paddingHorizontal="$2"
flex={1}
>
<H3>{props.title}</H3>
<YStack height="$12">
<YStack flex={1}>
<ScrollView>
<YStack>{props.description}</YStack>
</ScrollView>
Expand Down

0 comments on commit b661acd

Please sign in to comment.