diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-03-20 23:33:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-20 23:33:19 +0200 |
commit | d3c44ebc5b9becc78b58a4f12f9bbf7173da9e32 (patch) | |
tree | 9d764dbe80cc751d1def2b9801f096a3f65808b9 /src | |
parent | 950e2e5f742a81dc1c061313987a9e604554913d (diff) | |
download | voidsky-d3c44ebc5b9becc78b58a4f12f9bbf7173da9e32.tar.zst |
Fix post thread item hider line height crop (#8028)
Diffstat (limited to 'src')
-rw-r--r-- | src/components/moderation/PostHider.tsx | 4 | ||||
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 3 | ||||
-rw-r--r-- | src/view/com/post-thread/PostThreadShowHiddenReplies.tsx | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/components/moderation/PostHider.tsx b/src/components/moderation/PostHider.tsx index 246e30015..03a58ab0b 100644 --- a/src/components/moderation/PostHider.tsx +++ b/src/components/moderation/PostHider.tsx @@ -114,7 +114,9 @@ export function PostHider({ <desc.icon size="sm" fill={t.atoms.text_contrast_medium.color} /> </View> </Pressable> - <Text style={[t.atoms.text_contrast_medium, a.flex_1]} numberOfLines={1}> + <Text + style={[t.atoms.text_contrast_medium, a.flex_1, a.leading_snug]} + numberOfLines={1}> {desc.name} </Text> {!modui.noOverride && ( 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> |