Fix text truncating in image menu on iOS (#10802)

This commit is contained in:
DS Boyce
2026-06-09 09:35:49 -07:00
committed by GitHub
parent be30947089
commit 986cf62da1
+2 -5
View File
@@ -10,7 +10,7 @@ import Animated, {
} from 'react-native-reanimated' } from 'react-native-reanimated'
import {useLingui} from '@lingui/react/macro' import {useLingui} from '@lingui/react/macro'
import {android, atoms as a, ios} from '#/alf' import {atoms as a} from '#/alf'
import {ArrowShareRight_Stroke2_Corner2_Rounded as ShareIcon} from '#/components/icons/ArrowShareRight' import {ArrowShareRight_Stroke2_Corner2_Rounded as ShareIcon} from '#/components/icons/ArrowShareRight'
import {type Props as IconProps} from '#/components/icons/common' import {type Props as IconProps} from '#/components/icons/common'
import {DotGrid3x1_Stroke2_Corner0_Rounded as DotsIcon} from '#/components/icons/DotGrid' import {DotGrid3x1_Stroke2_Corner0_Rounded as DotsIcon} from '#/components/icons/DotGrid'
@@ -25,7 +25,6 @@ type Props = {
type Anchor = {x: number; y: number; width: number; height: number} type Anchor = {x: number; y: number; width: number; height: number}
const MENU_WIDTH = 160
const GAP = 6 const GAP = 6
const CARD_BG = '#000000' const CARD_BG = '#000000'
const CARD_BORDER = '#232e3e' const CARD_BORDER = '#232e3e'
@@ -124,9 +123,8 @@ function MenuCard({
<Animated.View <Animated.View
style={[ style={[
a.absolute, a.absolute,
a.self_start,
styles.card, styles.card,
android({alignSelf: 'flex-start'}),
ios({width: MENU_WIDTH}),
{ {
top: anchor.y + anchor.height + GAP, top: anchor.y + anchor.height + GAP,
left: anchor.x, left: anchor.x,
@@ -186,7 +184,6 @@ const styles = StyleSheet.create({
backgroundColor: 'rgba(255, 255, 255, 0.08)', backgroundColor: 'rgba(255, 255, 255, 0.08)',
}, },
itemText: { itemText: {
flex: 1,
fontSize: 15, fontSize: 15,
fontWeight: '500', fontWeight: '500',
lineHeight: 19.5, lineHeight: 19.5,