Simplify inline badge presentation
This commit is contained in:
@@ -250,7 +250,6 @@ let NotificationFeedItem = ({
|
|||||||
t.atoms.text,
|
t.atoms.text,
|
||||||
a.font_semi_bold,
|
a.font_semi_bold,
|
||||||
a.text_md,
|
a.text_md,
|
||||||
a.leading_tight,
|
|
||||||
web({direction: 'ltr', unicodeBidi: 'isolate'}),
|
web({direction: 'ltr', unicodeBidi: 'isolate'}),
|
||||||
]}
|
]}
|
||||||
to={firstAuthor.href}
|
to={firstAuthor.href}
|
||||||
@@ -260,18 +259,8 @@ let NotificationFeedItem = ({
|
|||||||
{forceLTR(firstAuthorName)}
|
{forceLTR(firstAuthorName)}
|
||||||
<ProfileBadges
|
<ProfileBadges
|
||||||
profile={firstAuthor.profile}
|
profile={firstAuthor.profile}
|
||||||
size="md"
|
size="sm"
|
||||||
style={[
|
style={[a.px_2xs, {transform: [{translateY: 1}]}]}
|
||||||
a.relative,
|
|
||||||
{
|
|
||||||
// weird stuff here
|
|
||||||
paddingTop: platform({android: 2}),
|
|
||||||
marginBottom: platform({ios: -6}),
|
|
||||||
top: platform({web: 2}),
|
|
||||||
paddingLeft: 3,
|
|
||||||
paddingRight: 2,
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
/>
|
/>
|
||||||
</InlineLinkText>
|
</InlineLinkText>
|
||||||
</ProfileHoverCard>
|
</ProfileHoverCard>
|
||||||
@@ -315,7 +304,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -337,7 +326,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -377,7 +366,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -409,7 +398,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -431,7 +420,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -458,7 +447,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -481,7 +470,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -506,7 +495,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -528,7 +517,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
{firstAuthorLink} and{' '}
|
{firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -558,7 +547,7 @@ let NotificationFeedItem = ({
|
|||||||
notificationContent = hasMultipleAuthors ? (
|
notificationContent = hasMultipleAuthors ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
New posts from {firstAuthorLink} and{' '}
|
New posts from {firstAuthorLink} and{' '}
|
||||||
<Text style={[a.text_md, a.font_semi_bold, a.leading_snug]}>
|
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||||
<Plural
|
<Plural
|
||||||
value={additionalAuthorsCount}
|
value={additionalAuthorsCount}
|
||||||
one={`${formattedAuthorsCount} other`}
|
one={`${formattedAuthorsCount} other`}
|
||||||
@@ -662,7 +651,6 @@ let NotificationFeedItem = ({
|
|||||||
{paddingTop: 6},
|
{paddingTop: 6},
|
||||||
a.self_start,
|
a.self_start,
|
||||||
a.text_md,
|
a.text_md,
|
||||||
a.leading_snug,
|
|
||||||
]}
|
]}
|
||||||
accessibilityHint=""
|
accessibilityHint=""
|
||||||
accessibilityLabel={a11yLabel}>
|
accessibilityLabel={a11yLabel}>
|
||||||
@@ -1171,7 +1159,7 @@ function AdditionalPostText({post}: {post?: AppBskyFeedDefs.PostView}) {
|
|||||||
{text?.length > 0 && (
|
{text?.length > 0 && (
|
||||||
<Text
|
<Text
|
||||||
emoji
|
emoji
|
||||||
style={[a.text_sm, a.leading_snug, t.atoms.text_contrast_medium]}
|
style={[a.text_sm, t.atoms.text_contrast_medium]}
|
||||||
numberOfLines={MAX_POST_LINES}>
|
numberOfLines={MAX_POST_LINES}>
|
||||||
{text}
|
{text}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user