question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How i do it?

toast.warn("Error 400\nField text invalid")

\n and <br/> not wrapping text.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Teenterrorcommented, Apr 2, 2020

I have a long text like

toast.success("MYSUCCESSMYSUCCESSMYSUCCESSMYSUCCESSMYSUCCESS");

The above text is not getting word wrap. The text is beyond the display part of toast.

Need the second toast to be word wrap

asdfasdfScreenshot from 2020-04-02 20-02-19

2reactions
kingleuthercommented, Jul 5, 2018

How about if we are using .js? How are we going to have a new line

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS word-wrap property - W3Schools
The word-wrap property allows long words to be able to be broken and wrap onto the next line. Show demo ❯. Default value:...
Read more >
overflow-wrap - CSS: Cascading Style Sheets - MDN Web Docs
The overflow-wrap CSS property applies to inline elements, setting whether the browser should insert line breaks within an otherwise ...
Read more >
CSS word-wrap Property - W3docs
The word-wrap property breaks lines into words so as to fit in its container. This property even breaks words that are not unbreakable....
Read more >
Word wrap Definition & Meaning - Merriam-Webster
The meaning of WORD WRAP is a word processing feature that automatically transfers a word for which there is insufficient space from the...
Read more >
How to word wrap text in HTML? - css - Stack Overflow
A server side solution that works for me is: $message = wordwrap($message, 50, "< ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found