Remove <wbr>s in links, use CSS to break.

This commit is contained in:
Mayhem 2014-02-15 00:37:39 +01:00
parent 715724df29
commit e6198d4014
2 changed files with 7 additions and 2 deletions

View File

@ -1056,8 +1056,10 @@ a.remove {
margin: 0;
}
/* colored uid */
/* Other */
.linkified {
word-break: break-all;
}
.posteruid.painted {
padding: 0 5px;
border-radius: 1em;

View File

@ -65,6 +65,7 @@ Linkify =
else
walker.previousNode()
range.detach()
@nodes.comment.normalize()
find: (link, walker) ->
# Walk through the nodes until we find the entire link.
@ -134,6 +135,8 @@ Linkify =
cleanLink: (anchor, link) ->
{length} = link
for node in $$ 'wbr', anchor
$.rm node
for node in $$ 's, .prettyprint', anchor
$.replace node, [node.childNodes...] if length > node.textContent.length
return