Fix quote+list card padding (#8623)
* fix quote padding not being pressable * fix list padding not being pressable * Fix unnecessary loading of feeds (#8578) * stop layout shifts in feed loading * don't load feed data if we already have it * adjust styles, alf stuff * remove unused button, massively simplify * fix layout shifting in notifs * use feedcard for feed post embeds * use bold text to match other style * use Link component rather than jank Pressable * prevent nested anchors in notifs * match following text size * add space between content hider * Better dead feed handling (#8579) * add space between content hider * add handling for feeds that fail to load * cleanError, in case of network funkiness * handle deleted lists * split out missingfeed
This commit is contained in:
@@ -23,20 +23,23 @@ export function ContentHider({
|
||||
modui,
|
||||
ignoreMute,
|
||||
style,
|
||||
activeStyle,
|
||||
childContainerStyle,
|
||||
children,
|
||||
}: React.PropsWithChildren<{
|
||||
}: {
|
||||
testID?: string
|
||||
modui: ModerationUI | undefined
|
||||
ignoreMute?: boolean
|
||||
style?: StyleProp<ViewStyle>
|
||||
activeStyle?: StyleProp<ViewStyle>
|
||||
childContainerStyle?: StyleProp<ViewStyle>
|
||||
}>) {
|
||||
children?: React.ReactNode | ((props: {active: boolean}) => React.ReactNode)
|
||||
}) {
|
||||
const blur = modui?.blurs[0]
|
||||
if (!blur || (ignoreMute && isJustAMute(modui))) {
|
||||
return (
|
||||
<View testID={testID} style={style}>
|
||||
{children}
|
||||
{typeof children === 'function' ? children({active: false}) : children}
|
||||
</View>
|
||||
)
|
||||
}
|
||||
@@ -44,9 +47,9 @@ export function ContentHider({
|
||||
<ContentHiderActive
|
||||
testID={testID}
|
||||
modui={modui}
|
||||
style={style}
|
||||
style={[style, activeStyle]}
|
||||
childContainerStyle={childContainerStyle}>
|
||||
{children}
|
||||
{typeof children === 'function' ? children({active: true}) : children}
|
||||
</ContentHiderActive>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user