fix: temp field label/text truncation (#1565)

TEMP: Fix the truncation of the field label/text.
This commit is contained in:
Catalin Pit
2025-02-01 05:35:19 +02:00
committed by GitHub
parent 637e06f9c0
commit 339759166c
3 changed files with 5 additions and 5 deletions

View File

@ -234,8 +234,8 @@ export const NumberField = ({ field, onSignField, onUnsignField }: NumberFieldPr
if (parsedFieldMeta?.label) {
fieldDisplayName =
parsedFieldMeta.label.length > 10
? parsedFieldMeta.label.substring(0, 10) + '...'
parsedFieldMeta.label.length > 20
? parsedFieldMeta.label.substring(0, 20) + '...'
: parsedFieldMeta.label;
}

View File

@ -282,7 +282,7 @@ export const TextField = ({ field, onSignField, onUnsignField }: TextFieldProps)
>
{field.customText.length < 20
? field.customText
: field.customText.substring(0, 15) + '...'}
: field.customText.substring(0, 20) + '...'}
</p>
</div>
)}