notiflix / Notiflix

Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.
https://notiflix.github.io
MIT License
635 stars 55 forks source link

[BUG] - Long message getting cut off on Report. Implement scrolling? #62

Closed polis80cy closed 1 year ago

polis80cy commented 1 year ago

Describe the bug

I am using Report.Success with a long message. Is there a way to implement scrolling? Currently, it gets cut off. I didn't see anything relevant in the available properties.

Screenshots

Screenshot 2023-01-13 at 12 48 24 PM Screenshot 2023-01-13 at 12 48 34 PM

furcan commented 1 year ago

Hi @polis80cy

Notiflix.Report.success(
  'Code explanation',
  'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
  'Okay',
  function cb() {
    alert('Okay');
  },
  {
    messageMaxLength: 123456, // as you wish...
  },
);

Please feel free to take a look at the documentation as well. https://notiflix.github.io/documentation#DocsReport

Thanks.