Skip to content

Commit

Permalink
fix: mf-6495 space between texts
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Nov 21, 2024
1 parent 081f497 commit 2bad195
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/mask/dashboard/components/OnboardingWriter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ export function OnboardingWriter({ words, ...props }: OnboardingWriterProps) {
: undefined,
),
}
if (take < text.length) newJsx.push(cloneElement(fragment, props, [text.slice(0, take)]))
// the trailing space gets trimmed by i18n marco
if (take <= text.length) newJsx.push(cloneElement(fragment, props, [text.slice(0, take)]))
else
newJsx.push(
cloneElement(fragment, props, [
text,
<strong key={size}>{strongText.slice(0, take - text.length)}</strong>,
<strong key={size}> {strongText.slice(0, take - text.length)}</strong>,
]),
)
}
Expand Down

0 comments on commit 2bad195

Please sign in to comment.