Fix checkmark overflow in profile card (#8612)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import React from 'react'
|
import {useMemo} from 'react'
|
||||||
import {type GestureResponderEvent, View} from 'react-native'
|
import {type GestureResponderEvent, View} from 'react-native'
|
||||||
import {
|
import {
|
||||||
moderateProfile,
|
moderateProfile,
|
||||||
@@ -277,7 +277,13 @@ export function Name({
|
|||||||
<View style={[a.flex_row, a.align_center]}>
|
<View style={[a.flex_row, a.align_center]}>
|
||||||
<Text
|
<Text
|
||||||
emoji
|
emoji
|
||||||
style={[a.text_md, a.font_bold, a.leading_snug, a.self_start]}
|
style={[
|
||||||
|
a.text_md,
|
||||||
|
a.font_bold,
|
||||||
|
a.leading_snug,
|
||||||
|
a.self_start,
|
||||||
|
a.flex_shrink,
|
||||||
|
]}
|
||||||
numberOfLines={1}>
|
numberOfLines={1}>
|
||||||
{name}
|
{name}
|
||||||
</Text>
|
</Text>
|
||||||
@@ -345,7 +351,7 @@ export function Description({
|
|||||||
numberOfLines?: number
|
numberOfLines?: number
|
||||||
}) {
|
}) {
|
||||||
const profile = useProfileShadow(profileUnshadowed)
|
const profile = useProfileShadow(profileUnshadowed)
|
||||||
const rt = React.useMemo(() => {
|
const rt = useMemo(() => {
|
||||||
if (!('description' in profile)) return
|
if (!('description' in profile)) return
|
||||||
const rt = new RichTextApi({text: profile.description || ''})
|
const rt = new RichTextApi({text: profile.description || ''})
|
||||||
rt.detectFacetsWithoutResolution()
|
rt.detectFacetsWithoutResolution()
|
||||||
|
|||||||
Reference in New Issue
Block a user