WordPress.org

Making WordPress.org

Opened 8 months ago

Closed 8 months ago

#5051 closed defect (fixed)

String Overflow

Reported by: mayankmajeji Owned by: coffee2code
Milestone: Priority: low
Component: Trac Keywords: has-screenshots
Cc:

Description

When I pasted a long link in my preview ticket, it just overflowed out of the text area.

I am attaching a screenshot for your reference.

Attachments (2)

themes-trac-string-overflow.png (54.6 KB) - added by mayankmajeji 8 months ago.
5051.png (37.3 KB) - added by SergeyBiryukov 8 months ago.

Download all attachments as: .zip

Change History (6)

#1 @mayankmajeji
8 months ago

The code #ticket must be replaced with the below code in ticket.css

#ticket {
    background: #ffd;
    border: 1px solid #dd9;
    border-radius: .4em;
    margin-top: .2em;
    padding: .5em 1em;
    position: relative;
    word-break: break-all;
}

#2 @coffee2code
8 months ago

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

In 9544:

Trac: Prevent long URL from overflowing ticket description container.

Props mayankmajeji.
Fixes #5051.

@SergeyBiryukov
8 months ago

#3 @SergeyBiryukov
8 months ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

This produces unexpected wrapping for regular words.

See a screenshot from #WP21646 in the latest Chrome: 5051.png.

#4 @SergeyBiryukov
8 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 9549:

Trac: Switch word-break: break-all in ticket description to break-word.

This still prevents long URLs from overflowing ticket description container, but doesn't break regular words at any character.

Follow-up to [9544].

Fixes #5051.

Note: See TracTickets for help on using tickets.