Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 13, 20159 yr 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?
September 20, 20159 yr Author 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?
September 20, 20159 yr Author 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.
September 20, 20159 yr Author In fact, you need to include the overflow property to force the scroll bar: pre.ipsCode{ max-height:500px; overflow:auto; }
September 20, 20159 yr 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)
Archived
This topic is now archived and is closed to further replies.