Opened 4 years ago

Closed 4 years ago

#5051 closed defect (bug) (fixed)

String Overflow

Reported by: mayankmajeji's profile mayankmajeji Owned by: coffee2code's profile coffee2code
Milestone: Priority: low
Component: Trac Keywords: has-screenshots


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 4 years ago.
5051.png (37.3 KB) - added by SergeyBiryukov 4 years ago.

Download all attachments as: .zip

Change History (6)

#1 @mayankmajeji
4 years 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
4 years 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.

4 years ago

#3 @SergeyBiryukov
4 years 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
4 years 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.