about summary refs log tree commit diff
path: root/src/view/com/notifications/NotificationFeedItem.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-06-14 00:43:17 +0300
committerGitHub <noreply@github.com>2025-06-13 16:43:17 -0500
commit00469314ca2f76bf13d0526afdd6c9253c0953d1 (patch)
treeb21d41d3eac86d3c135c9d701f65a1be47d09ee4 /src/view/com/notifications/NotificationFeedItem.tsx
parented9691511beb26bdb799bbcb9a973a8b8df3433c (diff)
downloadvoidsky-00469314ca2f76bf13d0526afdd6c9253c0953d1.tar.zst
Use Button instead of TextLink for show more button (#8480)
* use button instead of TextLink for show more

* Match post text size, provide interaction feedback

* Move to new Post components dir

* Prettier

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/view/com/notifications/NotificationFeedItem.tsx')
-rw-r--r--src/view/com/notifications/NotificationFeedItem.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/notifications/NotificationFeedItem.tsx b/src/view/com/notifications/NotificationFeedItem.tsx
index 0a460e77b..85f67919a 100644
--- a/src/view/com/notifications/NotificationFeedItem.tsx
+++ b/src/view/com/notifications/NotificationFeedItem.tsx
@@ -30,6 +30,7 @@ import {useLingui} from '@lingui/react'
 import {useNavigation} from '@react-navigation/native'
 import {useQueryClient} from '@tanstack/react-query'
 
+import {MAX_POST_LINES} from '#/lib/constants'
 import {useAnimatedValue} from '#/lib/hooks/useAnimatedValue'
 import {usePalette} from '#/lib/hooks/usePalette'
 import {makeProfileLink} from '#/lib/routes/links'
@@ -918,7 +919,8 @@ function AdditionalPostText({post}: {post?: AppBskyFeedDefs.PostView}) {
         {text?.length > 0 && (
           <Text
             emoji
-            style={[a.text_sm, a.leading_snug, t.atoms.text_contrast_medium]}>
+            style={[a.text_sm, a.leading_snug, t.atoms.text_contrast_medium]}
+            numberOfLines={MAX_POST_LINES}>
             {text}
           </Text>
         )}