4 ms·
> I think the best thing is to just disable pre in mobile. That sounds great, do you know how to do this? I'm on Firefox mobile so user styles might be an opti
by yjftsjthsd-h 9y ago
> I think the best thing is to just disable pre in mobile.
That sounds great, do you know how to do this? I'm on Firefox mobile so user styles might be an option
- mcny 9y agoI think it is best to fix this for everyone. Dang, looks like adding white-space: normal; in pre and pre:hover in the css can make things much better for mobile web users. Can we consider it? Demo on Firefox nightly https://i.imgur.com/j4qvqfo.png https://i.imgur.com/j4qvqfo.png Edit: https://stackoverflow.com/a/27126549 https://stackoverflow.com/a/27126549
- EvilTerran 9y agoIf you have uBlock Origin installed, you can tweak styles with its "My Filters". I have these in there: news.ycombinator.com##.comment code:style(white-space:pre-wrap) news.ycombinator.com##.comment pre:style(max-width:none!important) The first line makes code blocks in HN comments word-wrap (while still preserving whitespace otherwise); the second lets them expand to the width of their containing comment.
- yjftsjthsd-h 9y agoThat works great, thank you! I never realized uBlock could do CSS modification like that, though in hindsight it is probably a simple enough extension of how the thing works in the first place.