From 12a8f3a032ab42dbc3d6bb850c625e10e4913bd6 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 11 Jan 2019 21:43:53 +0800 Subject: [PATCH] [improvement] Toast: allow newline charactor (#2496) --- packages/toast/index.less | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/toast/index.less b/packages/toast/index.less index 85a8c2237..6b87f6fba 100644 --- a/packages/toast/index.less +++ b/packages/toast/index.less @@ -19,7 +19,10 @@ background-color: @toast-background-color; // hack for avoid max-width when use left & fixed - width: fit-content; + width: fit-content; + + // allow newline charactor + white-space: pre-wrap; // should not add pointer-events: none directly to body tag // that will cause unexpected tap-highlight-color in mobile safari