From aedea6e389d1666514a6bc52f70061b81c8ab431 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 22 May 2021 19:45:09 +0800 Subject: [PATCH] style(Toast): add transition (#8743) --- src/toast/index.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/toast/index.less b/src/toast/index.less index 456b6fbed..d597afec8 100644 --- a/src/toast/index.less +++ b/src/toast/index.less @@ -6,6 +6,7 @@ align-items: center; justify-content: center; box-sizing: content-box; + transition: all @animation-duration-fast; // hack for avoid max-width when use left & fixed width: @toast-default-width; @@ -16,7 +17,7 @@ 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;