From 2609a7c7c1280ac3b7fc36e462a61cc1cd7842d1 Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 1 Jul 2021 21:02:24 +0800 Subject: [PATCH] style(Toast): adjust work break (#8966) --- src/toast/index.less | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);