From 2a404822f60a0f73a3db58696fb5cb878824c192 Mon Sep 17 00:00:00 2001 From: Gavin Date: Wed, 25 Oct 2023 20:31:19 +0800 Subject: [PATCH] style: replace word-break with overflow-wrap (#12396) --- packages/vant/src/field/index.less | 2 +- packages/vant/src/text-ellipsis/index.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vant/src/field/index.less b/packages/vant/src/field/index.less index dd9404ceb..e461a90ed 100644 --- a/packages/vant/src/field/index.less +++ b/packages/vant/src/field/index.less @@ -45,7 +45,7 @@ width: 100%; text-align: left; margin-bottom: var(--van-padding-base); - word-break: break-word; + overflow-wrap: break-word; } &--required { diff --git a/packages/vant/src/text-ellipsis/index.less b/packages/vant/src/text-ellipsis/index.less index af78f7489..766f3785a 100644 --- a/packages/vant/src/text-ellipsis/index.less +++ b/packages/vant/src/text-ellipsis/index.less @@ -6,7 +6,7 @@ .van-text-ellipsis { line-height: var(--van-text-ellipsis-line-height); white-space: pre-wrap; - word-break: break-word; + overflow-wrap: break-word; &__action { cursor: pointer;