I have toastr message notification using ngx-toastr from npm (my current stack is Angular 9)
Is there a way to alter the max-width for the messages since it is causing the message-text to wrap.
this.toastrService.error(
'This is an error message to be displayed<br> please log back','',
{ enableHtml: true }
).
I want the displayed also to be in the first line
You could use the native classes, i.E.
toast-top-full-width
ortoast-bottom-full-width
As an alternative you could also apply your custom class via
position-class
and define the class in your CSS.CSS:
Update after clarifications from the comments:
From the docs:
Example:
So in your case for example that would be :
Or with your own custom class:
Please see more info under OPTIONS at https://www.npmjs.com/package/ngx-toastr.