Jump to content

Code block scroll bar?


cfish

Recommended Posts

Posted

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?

Posted

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?

Posted
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.

Posted
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...