diff --git a/frontend/app/components/UsabilityTesting/TestEdit.tsx b/frontend/app/components/UsabilityTesting/TestEdit.tsx index 4c1c97d30..17ffcfc17 100644 --- a/frontend/app/components/UsabilityTesting/TestEdit.tsx +++ b/frontend/app/components/UsabilityTesting/TestEdit.tsx @@ -417,6 +417,8 @@ export function Step({ description: string | null; hover?: boolean; }) { + const safeTitle = title.length > 120 ? title.slice(0, 120) + '...' : title; + const safeDescription = description && description?.length > 300 ? description.slice(0, 300) + '...' : description; return (
- {title} -
{description}
+ {safeTitle} +
{safeDescription}