diff --git a/src/toast/index.less b/src/toast/index.less index 0f55e7ef3..d23aa0774 100644 --- a/src/toast/index.less +++ b/src/toast/index.less @@ -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);