Opened 7 weeks ago

Last modified 7 weeks ago

#10928 new defect

Text content should have "word-wrap: break-word"

Reported by: MasterQuestionable Owned by:
Priority: important Component: trac
Version: unspecified Keywords: HTML CSS
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Else the long URI alike might look ugly.
[ https://trac.ffmpeg.org/ticket/10919#comment:description ]

Local fix (uBlock Origin):
trac.ffmpeg.org## #content:style( word-wrap: break-word; )

Should work for most cases, but caveat this:
https://bugzilla.mozilla.org/show_bug.cgi?id=587438#c17

Change History (3)

comment:1 by MasterQuestionable, 7 weeks ago

Do remember to add "max-width: 100%" for "<img>"s...
uBO:
trac.ffmpeg.org##img:style( max-width: 100%; )

Also, I noted the "[[Image( ... )]]" macro didn't follow redirections:
So [ https://github.com/MasterInQuestion/attach/raw/main/@ext/trac.ffmpeg.org/ticket/10928/word-wrap.webp ] alike wouldn't work.

comment:2 by MasterQuestionable, 7 weeks ago

Priority: normalimportant

comment:3 by MasterQuestionable, 7 weeks ago

Unfamiliar with HTML CSS?
.
Anyone with write access to [ https://trac.ffmpeg.org/chrome/common/css/trac.css ]:
May append following lines to immediately address the problem:

[[

/* ---- BEGIN (0) */
        #content { word-wrap: break-word; }
        img { max-width: 100%; }
/*
        Interim fix to handle broken appearance with long content.
        See [ https://trac.ffmpeg.org/ticket/10928 ] for details.
*/
/* ---- END (0) */

]]
(use Tab for leading space: not preserved by processor)

Note: See TracTickets for help on using tickets.