Skip to:
Content

bbPress.org

Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#2350 closed defect (bug) (fixed)

Code tags with long contents break poorly on the page

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.4 Priority: normal
Severity: normal Version: 2.1
Component: Appearance - Included Themes Keywords: has-patch
Cc:

Description

Long single line code snippets end up wrapping onto multiple lines. (See attachment)

Code tags should probably be inline-block, and have white-space nowrap and a max-width set to allow them to scroll sideways as needed.

Attachments (2)

Screen Shot 2013-06-13 at 1.08.22 PM.png (33.7 KB) - added by johnjamesjacoby 12 years ago.
Example
2350.patch (1.1 KB) - added by johnjamesjacoby 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @johnjamesjacoby
12 years ago

  • Component changed from General to Included Themes
  • Keywords has-patch added

#2 @johnjamesjacoby
11 years ago

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

In 4986:

When posting long single lines of code (meaning pre tags are not used to aid in formatting) they will break onto several lines if they are longer than the container element allows.

This changeset tweaks the CSS to allow code tags to scroll, and limit the width to 95%. Fixes #2350.

#3 @johnjamesjacoby
11 years ago

In 5001:

For inline code blocks in topics and replies, ensure they are vertically positioned in the middle of their respective lines of text. Fixes issue where code snippets were top-aligned based on paragraph line-height. See #2350.

Note: See TracTickets for help on using tickets.