Opened 8 years ago

Closed 8 years ago

#1924 closed defect (bug) (fixed)

Restore vertical scrolling for large code samples on support forums

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: netweb's profile netweb
Milestone: Priority: normal
Component: International Forums Keywords: has-patch

Description (last modified by SergeyBiryukov)

Previously, large code samples on support forums had both horizontal and vertical scrolling. (We do recommend using Pastebin or similar services for large samples, but most users still just paste them on the forums as is.)

After the upgrade to bbPress 2.x, the samples have horizontal scrolling, but the height is not limited, which makes it harder to browse the thread.

Adding max-height for the <code> element should fix it:

#bbpress-forums div.bbp-reply-content pre code,
#bbpress-forums div.bbp-topic-content pre code {
	max-height: 40em;

Attachments (2)

meta-1924.patch (609 bytes) - added by SergeyBiryukov 8 years ago.
1924-bb.diff (552 bytes) - added by netweb 8 years ago.

Download all attachments as: .zip

Change History (8)

#1 @SergeyBiryukov
8 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
8 years ago

  • Description modified (diff)

This ticket was mentioned in Slack in #buddypress by netweb. View the logs.

8 years ago

8 years ago

#4 @netweb
8 years ago

I've asked in #BuddyPress if they'd like to see this change on, I think it is a great improvement, to that end 1924-bb.diff would implement the fix network wide for all instances of bbPress 2.x forums on networks using the bb-base theme.


Last edited 8 years ago by netweb (previous) (diff)

#5 @DJPaul
8 years ago


Last edited 8 years ago by DJPaul (previous) (diff)

#6 @netweb
8 years ago

  • Owner set to netweb
  • Resolution set to fixed
  • Status changed from new to closed

In 3839: Add max-height for bbPress' bb-base themes topics and replies <code> code blocks.

Props SergeyBiryukov.
Fixes #1924.

Note: See TracTickets for help on using tickets.