cfish Posted September 13, 2015 Posted September 13, 2015 Very long blocks of code present a problem for the readability of forum threads. Commonly, this is resolved by adding a scroll bar to the block after a reasonable number of lines. IPB4 does not do this, which leads to crazy long code blocks and almost unreadable threads like this one.Could we please have scroll bar functionality for code blocks in 4.1?
cfish Posted September 20, 2015 Author Posted September 20, 2015 Hmm, I guess this request didn't really chime with anyone else but I think it's an important usability issue. I suppose this could be an easy fix using just CSS?
salue Posted September 20, 2015 Posted September 20, 2015 yes that would be great to have +1 to that <3
Nathan Explosion Posted September 20, 2015 Posted September 20, 2015 custom.css pre.ipsCode{ max-height:500px; }
cfish Posted September 20, 2015 Author Posted September 20, 2015 3 hours ago, Nathan Explosion said: custom.css pre.ipsCode{ max-height:500px; } Of course, but it should be there by default. It always was in the past and I'm just thinking that it was an oversight.
cfish Posted September 20, 2015 Author Posted September 20, 2015 In fact, you need to include the overflow property to force the scroll bar: pre.ipsCode{ max-height:500px; overflow:auto; }
Nathan Explosion Posted September 20, 2015 Posted September 20, 2015 1 hour ago, cfish said: Of course, but it should be there by default. It always was in the past and I'm just thinking that it was an oversight. My fresh out of the box 3.4.8 install doesn't do it. 1 hour ago, cfish said: In fact, you need to include the overflow property to force the scroll bar: pre.ipsCode{ max-height:500px; overflow:auto; } My fresh out of the box 4.0.13.1 install didn't need it, in fact. (you can go ahead and edit the CSS on here with browser developer tools and see that it works fine without adding the overflow in....it's applied already in IPS's own css)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.