Ox.IconItem: fix a regression related to highlights across linebreaks; add a class to ellipsis
This commit is contained in:
parent
da4e07fc2f
commit
c4ad59bdb6
1 changed files with 3 additions and 3 deletions
|
@ -164,7 +164,7 @@ Ox.IconItem = function(options, self) {
|
||||||
if (lines.length > maxLines) {
|
if (lines.length > maxLines) {
|
||||||
lines[maxLines - 1] = Ox.truncate(
|
lines[maxLines - 1] = Ox.truncate(
|
||||||
lines.slice(maxLines - 1).join(''), 'center', maxLength
|
lines.slice(maxLines - 1).join(''), 'center', maxLength
|
||||||
);
|
).replace('…', '<span class="OxLight">…</span>');
|
||||||
lines = lines.slice(0, maxLines);
|
lines = lines.slice(0, maxLines);
|
||||||
}
|
}
|
||||||
return Ox.highlight(
|
return Ox.highlight(
|
||||||
|
|
Loading…
Add table
Reference in a new issue