Page MenuHomePhabricator

Line breaking
Closed, ResolvedPublic

Description

https://www.mediawiki.org/wiki/Extension_talk:Lingo#lqt_thread_id_32466, Lightbinder (talk), ‎21:39, 26 August 2013:

I've got Lingo 0.4.3alpha running on MediaWiki 1.21.2, and for most part it works great. There's a corner case, though, where if you have a term with spaces in it (e.g. myocardial infarction), and the line happens to wrap in the middle of the term, you end up with a tooltip that goes off the right margin of the page. I'm doing some investigation, but one quick-and-dirty fix for it is to add white-space: nowrap; to the .tooltip_abbr CSS class in skins/Lingo.css. That portion of my skins/Lingo.css, for instance, reads:

.tooltip_abbr {

border-bottom: 1px dotted #bbf;
white-space: nowrap;

}

This solves the problem, but it means that you can get some ugly line breaking patterns as a result. I'll keep investigating to see if there isn't a more elegant way to fix this bug.


Version: unspecified
Severity: normal

Details

Reference
bz55830

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:12 AM
bzimport set Reference to bz55830.

Switched Lingo to use qTip, which does a pretty smart job in positioning the tooltip.