Skip to content

Commit a1f0e63

Browse files
committed
fix(mobile): keep swipe-action labels readable with larger text
1 parent 2f4da5d commit a1f0e63

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/mobile/src/features/home/thread-swipe-actions.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,15 @@ function SwipeActionButton(props: {
676676
</View>
677677
<Animated.View
678678
style={[
679-
{ height: 14, justifyContent: "center", paddingTop: props.compact ? 0 : 2 },
679+
{ minHeight: 14, justifyContent: "center", paddingTop: props.compact ? 0 : 2 },
680680
labelStyle,
681681
]}
682682
>
683-
<Text className="text-3xs font-t3-medium text-foreground-muted" numberOfLines={1}>
683+
<Text
684+
adjustsFontSizeToFit
685+
className="text-3xs font-t3-medium text-foreground-muted"
686+
numberOfLines={1}
687+
>
684688
{props.label}
685689
</Text>
686690
</Animated.View>

0 commit comments

Comments
 (0)