Adjust spacing of inform badges

This commit is contained in:
Eric Bailey
2024-03-10 17:39:19 -05:00
parent a69699a883
commit 918e1e6b53
7 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export function PostAlerts({
}
return (
<View style={[a.flex_col, a.gap_xs, a.mb_sm, style]}>
<View style={[a.flex_col, a.gap_xs, style]}>
{modui.inform && (
<View style={[a.flex_row, a.flex_wrap, a.gap_xs]}>
{modui.informs.map(cause => (
@@ -27,7 +27,7 @@ export function ProfileHeaderAlerts({
}
return (
<View style={[a.flex_col, a.gap_xs, a.mb_sm, style]}>
<View style={[a.flex_col, a.gap_xs, style]}>
{modui.inform && (
<View style={[a.flex_row, a.flex_wrap, a.gap_xs]}>
{modui.informs.map(cause => (
+1 -1
View File
@@ -80,7 +80,7 @@ let ProfileHeaderShell = ({
{children}
<View style={[a.px_lg]} pointerEvents="box-none">
<View style={[a.px_lg, a.pb_sm]} pointerEvents="box-none">
<ProfileHeaderAlerts moderation={moderation} />
{isMe && (
<LabelsOnMe details={{did: profile.did}} labels={profile.labels} />
+2 -2
View File
@@ -297,7 +297,7 @@ let PostThreadItemLoaded = ({
<PostAlerts
modui={moderation.ui('contentView')}
includeMute
style={styles.alert}
style={[a.pt_2xs, a.pb_sm]}
/>
{richText?.text ? (
<View
@@ -488,7 +488,7 @@ let PostThreadItemLoaded = ({
<LabelsOnMyPost post={post} />
<PostAlerts
modui={moderation.ui('contentList')}
style={styles.alert}
style={[a.pt_xs, a.pb_sm]}
/>
{richText?.text ? (
<View style={styles.postTextContainer}>
+1 -1
View File
@@ -185,7 +185,7 @@ function PostInner({
childContainerStyle={styles.contentHiderChild}>
<PostAlerts
modui={moderation.ui('contentView')}
style={styles.alert}
style={[a.py_xs]}
/>
{richText.text ? (
<View style={styles.postTextContainer}>
+1 -1
View File
@@ -340,7 +340,7 @@ let PostContent = ({
modui={moderation.ui('contentList')}
ignoreMute
childContainerStyle={styles.contentHiderChild}>
<PostAlerts modui={moderation.ui('contentList')} style={styles.alert} />
<PostAlerts modui={moderation.ui('contentList')} style={[a.py_xs]} />
{richText.text ? (
<View style={styles.postTextContainer}>
<RichText
+1 -4
View File
@@ -152,10 +152,7 @@ export function QuoteEmbed({
/>
</View>
{moderation ? (
<PostAlerts
modui={moderation.ui('contentView')}
style={styles.alert}
/>
<PostAlerts modui={moderation.ui('contentView')} style={[a.py_xs]} />
) : null}
{richText ? (
<RichText