Page MenuHomePhabricator

[Cashtab] Word-break for validation msgs
ClosedPublic

Authored by bytesofman on Fri, Apr 19, 16:56.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC0c5fa543ed31: [Cashtab] Word-break for validation msgs
Summary

T3553

Long validation msgs can be cut-off as a long string early on will bump to the second line.

Add word-break: break-all to reduce this issue.

Note: The issue is not totally "solved," but this is a Cashtab design decision (validation error msgs are restricted to 2 lines. So, it is possible to generate one longer than 2 lines and see a cutoff).

Test Plan

npm test

Before:

image.png (394×609 px, 322 KB)

solves problem for user-reported (and expected common) case:

image.png (267×479 px, 24 KB)

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable