From e02cae2acdc9f7c22a14aefeacbcd0ce4472b1a0 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 13 May 2024 08:49:54 -0700 Subject: [PATCH] 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 check --- src/components/ProfileHoverCard/index.web.tsx | 10 +++++----- src/view/com/util/PostMeta.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index c6125e2e..09a4b397 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -285,14 +285,14 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) { } return ( -
+ style={{flexShrink: 1}}> {props.children} {isVisible && ( @@ -307,7 +307,7 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
)} - + ) } diff --git a/src/view/com/util/PostMeta.tsx b/src/view/com/util/PostMeta.tsx index c0e4d809..b6fe6d37 100644 --- a/src/view/com/util/PostMeta.tsx +++ b/src/view/com/util/PostMeta.tsx @@ -142,6 +142,6 @@ const styles = StyleSheet.create({ }, maxWidth: { flex: isAndroid ? 1 : undefined, - maxWidth: !isAndroid ? '80%' : undefined, + flexShrink: isAndroid ? undefined : 1, }, })