style(Toast): adjust work break (#8966)

This commit is contained in:
neverland 2021-07-01 21:02:24 +08:00 committed by GitHub
parent c48883e7c8
commit 2609a7c7c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,10 +19,11 @@
font-size: @toast-font-size;
line-height: @toast-line-height;
// allow newline charactor
// allow newline character
white-space: pre-wrap;
text-align: center;
word-wrap: break-word;
// https://github.com/youzan/vant/issues/8959
word-break: break-all;
background-color: @toast-background-color;
border-radius: @toast-border-radius;
transform: translate3d(-50%, -50%, 0);