about summary refs log tree commit diff
path: root/src/view/com/post-thread
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-03-20 23:33:19 +0200
committerGitHub <noreply@github.com>2025-03-20 23:33:19 +0200
commitd3c44ebc5b9becc78b58a4f12f9bbf7173da9e32 (patch)
tree9d764dbe80cc751d1def2b9801f096a3f65808b9 /src/view/com/post-thread
parent950e2e5f742a81dc1c061313987a9e604554913d (diff)
downloadvoidsky-d3c44ebc5b9becc78b58a4f12f9bbf7173da9e32.tar.zst
Fix post thread item hider line height crop (#8028)
Diffstat (limited to 'src/view/com/post-thread')
-rw-r--r--src/view/com/post-thread/PostThread.tsx3
-rw-r--r--src/view/com/post-thread/PostThreadShowHiddenReplies.tsx2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index 3c737a2f4..83dbdb553 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -122,7 +122,7 @@ export function PostThread({uri}: {uri: string | undefined}) {
   const serverTreeViewEnabled = serverPrefs?.lab_treeViewEnabled ?? false
   const serverSortReplies = serverPrefs?.sort ?? 'hotness'
 
-  // However, we also need these to work locally for PWI (without persistance).
+  // However, we also need these to work locally for PWI (without persistence).
   // So we're mirroring them locally.
   const prioritizeFollowedUsers = serverPrioritizeFollowedUsers
   const [treeViewEnabled, setTreeViewEnabled] = useState(serverTreeViewEnabled)
@@ -566,7 +566,6 @@ export function PostThread({uri}: {uri: string | undefined}) {
               ? MAINTAIN_VISIBLE_CONTENT_POSITION
               : undefined
           }
-          // @ts-ignore our .web version only -prf
           desktopFixedHeight
           removeClippedSubviews={isAndroid ? false : undefined}
           ListFooterComponent={
diff --git a/src/view/com/post-thread/PostThreadShowHiddenReplies.tsx b/src/view/com/post-thread/PostThreadShowHiddenReplies.tsx
index 030a92bc2..7dc75520b 100644
--- a/src/view/com/post-thread/PostThreadShowHiddenReplies.tsx
+++ b/src/view/com/post-thread/PostThreadShowHiddenReplies.tsx
@@ -51,7 +51,7 @@ export function PostThreadShowHiddenReplies({
             <EyeSlash size="sm" fill={t.atoms.text_contrast_medium.color} />
           </View>
           <Text
-            style={[t.atoms.text_contrast_medium, a.flex_1]}
+            style={[t.atoms.text_contrast_medium, a.flex_1, a.leading_snug]}
             numberOfLines={1}>
             {label}
           </Text>