mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Toast: allow newline charactor (#2496)
This commit is contained in:
parent
5e623c1e34
commit
12a8f3a032
@ -19,7 +19,10 @@
|
|||||||
background-color: @toast-background-color;
|
background-color: @toast-background-color;
|
||||||
|
|
||||||
// hack for avoid max-width when use left & fixed
|
// 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
|
// should not add pointer-events: none directly to body tag
|
||||||
// that will cause unexpected tap-highlight-color in mobile safari
|
// that will cause unexpected tap-highlight-color in mobile safari
|
||||||
|
Loading…
x
Reference in New Issue
Block a user