Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions packages/mobile/src/components/contest-card/ContestCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,17 @@ export const ContestCard = (props: ContestCardProps) => {
<Divider orientation='horizontal' />

<Flex direction='column' gap='s'>
<Text
variant='heading'
size={variant === 'hero' ? 'l' : 'm'}
numberOfLines={2}
>
{contestTitle}
</Text>
{/* minHeight reserves space for 2 lines of heading/m (lineHeight xl = 32px × 2)
so grid cards stay the same height whether the title wraps or not. */}
<View style={{ minHeight: variant === 'hero' ? undefined : 64 }}>
<Text
variant='heading'
size={variant === 'hero' ? 'l' : 'm'}
numberOfLines={2}
>
{contestTitle}
</Text>
</View>
<ScrollView
horizontal
showsHorizontalScrollIndicator={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export const FeaturedRemixContests = () => {
carouselSpacing={spacing.l}
horizontalCardWidth={contestCardWidth}
isLoading={isAllContestsPending}
LoadingCardComponent={() => (
<ContestCardSkeleton style={{ width: contestCardWidth }} />
)}
LoadingCardComponent={() => <ContestCardSkeleton />}
/>
</ExploreSection>
</InViewWrapper>
Expand Down