Fix post thread item hider line height crop (#8028)

This commit is contained in:
Samuel Newman
2025-03-20 23:33:19 +02:00
committed by GitHub
parent 950e2e5f74
commit d3c44ebc5b
3 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -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 && (
+1 -2
View File
@@ -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={
@@ -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>