[wp-meta] [Making WordPress.org] #1924: Restore vertical scrolling for large code samples on support forums

Making WordPress.org noreply at wordpress.org
Sat Aug 20 12:15:07 UTC 2016


#1924: Restore vertical scrolling for large code samples on support forums
----------------------------------+------------------
 Reporter:  SergeyBiryukov        |       Owner:
     Type:  defect                |      Status:  new
 Priority:  normal                |   Milestone:
Component:  International Forums  |  Resolution:
 Keywords:  has-patch             |
----------------------------------+------------------
Description changed by SergeyBiryukov:

Old description:

> 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 padding,
> 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;
> }
> }}}

New description:

 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;
 }
 }}}

--

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1924#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list