mirror of
https://github.com/tooot-app/app
synced 2025-05-17 12:10:43 +02:00
Remove min height of cards
This commit is contained in:
parent
c59690fcb9
commit
ef80ab895e
@ -145,19 +145,21 @@ const TimelineCard: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<View style={{ flex: 1, padding: StyleConstants.Spacing.S }}>
|
<View style={{ flex: 1, padding: StyleConstants.Spacing.S }}>
|
||||||
<CustomText
|
{status.card?.title.length ? (
|
||||||
fontStyle='S'
|
<CustomText
|
||||||
numberOfLines={2}
|
fontStyle='S'
|
||||||
style={{
|
numberOfLines={2}
|
||||||
marginBottom: StyleConstants.Spacing.XS,
|
style={{
|
||||||
color: colors.primaryDefault
|
marginBottom: StyleConstants.Spacing.XS,
|
||||||
}}
|
color: colors.primaryDefault
|
||||||
fontWeight='Bold'
|
}}
|
||||||
testID='title'
|
fontWeight='Bold'
|
||||||
>
|
testID='title'
|
||||||
{status.card?.title}
|
>
|
||||||
</CustomText>
|
{status.card.title}
|
||||||
{status.card?.description ? (
|
</CustomText>
|
||||||
|
) : null}
|
||||||
|
{status.card?.description.length ? (
|
||||||
<CustomText
|
<CustomText
|
||||||
fontStyle='S'
|
fontStyle='S'
|
||||||
numberOfLines={1}
|
numberOfLines={1}
|
||||||
@ -170,9 +172,11 @@ const TimelineCard: React.FC = () => {
|
|||||||
{status.card.description}
|
{status.card.description}
|
||||||
</CustomText>
|
</CustomText>
|
||||||
) : null}
|
) : null}
|
||||||
<CustomText fontStyle='S' numberOfLines={1} style={{ color: colors.secondary }}>
|
{status.card?.url.length ? (
|
||||||
{status.card?.url}
|
<CustomText fontStyle='S' numberOfLines={1} style={{ color: colors.secondary }}>
|
||||||
</CustomText>
|
{status.card.url}
|
||||||
|
</CustomText>
|
||||||
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
@ -187,10 +191,6 @@ const TimelineCard: React.FC = () => {
|
|||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
minHeight:
|
|
||||||
(isStatus && foundStatus) || (isAccount && foundAccount)
|
|
||||||
? undefined
|
|
||||||
: StyleConstants.Font.LineHeight.M * 5,
|
|
||||||
marginTop: StyleConstants.Spacing.M,
|
marginTop: StyleConstants.Spacing.M,
|
||||||
borderWidth: StyleSheet.hairlineWidth,
|
borderWidth: StyleSheet.hairlineWidth,
|
||||||
borderRadius: StyleConstants.Spacing.S,
|
borderRadius: StyleConstants.Spacing.S,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user