[Glitch] Fix fields not having links

Port 496d41cdcec25a519ae28d83fcafdefb52cebe12 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo 2026-05-07 17:54:19 +02:00 committed by Claire
parent 87d61a280e
commit 3d93d48724

View File

@ -107,8 +107,13 @@ const FieldCard: FC<{
field: AccountField; field: AccountField;
}> = ({ htmlHandlers, field }) => { }> = ({ htmlHandlers, field }) => {
const intl = useIntl(); const intl = useIntl();
const { name, nameHasEmojis, value_plain, valueHasEmojis, verified_at } = const {
field; name_emojified,
nameHasEmojis,
value_emojified,
valueHasEmojis,
verified_at,
} = field;
const { wrapperRef, isLabelOverflowing, isValueOverflowing } = const { wrapperRef, isLabelOverflowing, isValueOverflowing } =
useFieldOverflow(); useFieldOverflow();
@ -131,7 +136,7 @@ const FieldCard: FC<{
)} )}
label={ label={
<FieldHTML <FieldHTML
text={name} text={name_emojified}
textHasCustomEmoji={nameHasEmojis} textHasCustomEmoji={nameHasEmojis}
className='translate' className='translate'
isOverflowing={isLabelOverflowing} isOverflowing={isLabelOverflowing}
@ -141,7 +146,7 @@ const FieldCard: FC<{
} }
value={ value={
<FieldHTML <FieldHTML
text={value_plain} text={value_emojified}
textHasCustomEmoji={valueHasEmojis} textHasCustomEmoji={valueHasEmojis}
isOverflowing={isValueOverflowing} isOverflowing={isValueOverflowing}
onOverflowClick={handleOverflowClick} onOverflowClick={handleOverflowClick}