about summary refs log tree commit diff
path: root/src/view/com/util/PostMeta.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-13 08:49:54 -0700
committerGitHub <noreply@github.com>2024-05-13 08:49:54 -0700
commite02cae2acdc9f7c22a14aefeacbcd0ce4472b1a0 (patch)
tree4c891ee6c0c385b0bdc6d4aa457dbf8893c8b7b5 /src/view/com/util/PostMeta.tsx
parentd49b93dc7e77962c143e4798344c8e35ab8a637e (diff)
downloadvoidsky-e02cae2acdc9f7c22a14aefeacbcd0ce4472b1a0.tar.zst
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
Diffstat (limited to 'src/view/com/util/PostMeta.tsx')
-rw-r--r--src/view/com/util/PostMeta.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/com/util/PostMeta.tsx b/src/view/com/util/PostMeta.tsx
index c0e4d8099..b6fe6d374 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,
   },
 })