Prevent last line of post text from being clipped on Android (#11433)

This commit is contained in:
DS Boyce
2026-08-11 13:57:18 -07:00
committed by GitHub
parent 9d5e634780
commit 82db01fc60
2 changed files with 10 additions and 10 deletions
@@ -2,13 +2,13 @@ import {Text, View} from 'react-native'
import {type AppBskyUnspeccedDefs} from '@atproto/api'
import {Trans, useLingui} from '@lingui/react/macro'
import {atoms as a, native, platform, useTheme} from '#/alf'
import {atoms as a, ios, platform, useTheme} from '#/alf'
import {useAnalytics} from '#/analytics'
/**
* How far the inline badge is nudged below the text baseline to optically
* center it. The containing `RichText` must reserve matching room via
* `suffixOffset`, or iOS clips the overflow.
* `suffixOffset`, or native clips the overflow.
*/
export const POST_NUMBER_INLINE_OFFSET = 6
@@ -52,8 +52,8 @@ export function ThreadItemPostNumber({
a.flex_shrink_0,
a.rounded_full,
t.atoms.bg_contrast_50,
native(a.py_2xs),
!inline && a.self_start,
ios(a.py_2xs),
{
paddingLeft: 5,
paddingRight: 5,
@@ -76,7 +76,7 @@ export function ThreadItemPostNumber({
style={[
a.text_xs,
a.font_medium,
t.atoms.text_contrast_high,
t.atoms.text_contrast_medium,
{
fontVariant: ['tabular-nums'],
},