Last modified: 2014-09-04 21:18:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72410, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70410 - Avoid breaking text in the middle of a word
Avoid breaking text in the middle of a word
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-04 19:09 UTC by Matthew Flaschen
Modified: 2014-09-04 21:18 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2014-09-04 19:09:33 UTC
The description (and other text if applicable) should preferably not be broken in the middle of a word.  Instead of.

"The tiger inhabits the ra..."

it should be:

"The tiger inhabits the rain..."

I'm not sure if this can be done in pure CSS.
Comment 1 Tisza Gergő 2014-09-04 21:18:31 UTC
It can't (that would have been text-overflow: ellipsis-word which was in the CSS3 working draft for a while but did not make it into the current version). It's doable in Javascript but truncating rich text in Javascript is not a trivial task. (Even with text-overflow there can be nasty surprises, see for example bug 67896.)

At some point we planned to use $.dotdotdot for this, but it never got done.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links