Opened 8 months ago

Last modified 3 months 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

Attachments (1)

.changes.webp (43.2 KB ) - added by MasterQuestionable 5 months ago.
͏    Another ͏"max-width" related issue... [[Image(...)]] ͏    trac.ffmpeg.org##.changes:style( max-width: 40%; ) ͏    ; shall fix. ͏    Related definition in: ͏    https://trac.ffmpeg.org/chrome/common/css/ticket.css ͏    . ͏    Substitute whose ͏"width: auto" (implied default) shall work.

Download all attachments as: .zip

Change History (4)

comment:1 by MasterQuestionable, 8 months 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, 8 months ago

Priority: normalimportant

comment:3 by MasterQuestionable, 8 months 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:
[[

/* >>>> (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.
*/
/* <<<< (0) */

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

Last edited 3 months ago by MasterQuestionable (previous) (diff)

by MasterQuestionable, 5 months ago

Attachment: .changes.webp added

͏    Another ͏"max-width" related issue...
͏    [ https://trac.ffmpeg.org/ticket/2325#comment:24 ]

͏    trac.ffmpeg.org##.changes:style( max-width: 40%; )
͏    ; shall fix.

͏    Related definition in:
͏    https://trac.ffmpeg.org/chrome/common/css/ticket.css
͏    .
͏    Substitute whose ͏"width: auto" (implied default) shall work.

Note: See TracTickets for help on using tickets.