Fix overflowing text on web and iOS in `PostMeta` (#3982)
* `flexShrink` on iOS and web `flexShrink` on iOS and web `flexShrink` on iOS and web actually, `flexShrink` use `flex` * adjust web * `expect-error` `onMouseUp` * ignore ref type checkzio/stable
parent
d49b93dc7e
commit
e02cae2acd
|
@ -285,14 +285,14 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
|
|||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
<View
|
||||
// @ts-ignore View is being used as div
|
||||
ref={refs.setReference}
|
||||
onPointerMove={onPointerMoveTarget}
|
||||
onPointerLeave={onPointerLeaveTarget}
|
||||
// @ts-ignore web only prop
|
||||
onMouseUp={onPress}
|
||||
style={{
|
||||
display: props.inline ? 'inline' : 'block',
|
||||
}}>
|
||||
style={{flexShrink: 1}}>
|
||||
{props.children}
|
||||
{isVisible && (
|
||||
<Portal>
|
||||
|
@ -307,7 +307,7 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
|
|||
</div>
|
||||
</Portal>
|
||||
)}
|
||||
</div>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -142,6 +142,6 @@ const styles = StyleSheet.create({
|
|||
},
|
||||
maxWidth: {
|
||||
flex: isAndroid ? 1 : undefined,
|
||||
maxWidth: !isAndroid ? '80%' : undefined,
|
||||
flexShrink: isAndroid ? undefined : 1,
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue