t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.85k forks source link

Scroll text horizontally, force text into two lines only #982

Open JanVeb opened 2 years ago

JanVeb commented 2 years ago

Hi there, really great project, wanted to ask if its possible to force text to be displayed in two lines only, have correct answer and then user answer and I want to be able to show one under the other so user can easily compare where did he go wrong.

I do this by text: 'Score Notes: ' + window.scoreNotes + '\n' + 'Your Input: ' + window.userNotes, which works fine, but when I have large text it breaks into multiple lines making it very hard to keep track of it.

What Im looking for is to force these two lines to go for as long as needed with possibility to scroll horizontally in order to move to desired position so user could compare his input with desired input.

Thank

lionralfs commented 2 years ago

Would something like this work?