Closed nikgraf closed 4 years ago
Just noticed it's the same for examples.
I would go for "next line" rather than scrolling. Should I do a quick design for this? @ryyppy @nikgraf
@nikgraf I think for very long signatures, we need to set up refmt
to limit it to a certain line length and let refmt
do the job. A browser-enforced line wrap would definitely look weird?
great point, that said for small screen e.g. mobile this won't work?
Would it make sense to do the refmt thing for our standard size and then apply this CSS to the pre-tag:
white-space: pre-wrap;
word-wrap: break-word;
It would look like this
Will be tackled by #84
Fixed
Currently long signatures don't fit and there is a horizontal scrollbar. For once sometimes it's not obvious that I can scroll and in general it's not a nice experience when trying to grasp the whole functions.
For wider screens to we really need to cut them off? For smaller screens would could wrap them to the next line? Any other ideas?