Page MenuHomePhabricator

[Cashtab] Word-break for validation msgs
ClosedPublic

Authored by bytesofman on Apr 19 2024, 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
Branch
more-space-for-validation-errors
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28675
Build 56891: Build Diffcashtab-tests
Build 56890: arc lint + arc unit