Skip to content

Commit

Permalink
[improvement] Toast: allow newline charactor (#2496)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Jan 11, 2019
1 parent 5e623c1 commit 12a8f3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/toast/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12a8f3a

Please sign in to comment.