Break long titles

This commit is contained in:
kpcyrd 2014-09-12 15:44:22 +02:00
parent 863ae0f638
commit 04f6a2f0aa
2 changed files with 8 additions and 0 deletions

View file

@ -28,6 +28,13 @@ body {
zoom: 1; zoom: 1;
} }
.css-truncate {
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
display: inline-block;
white-space: nowrap;
}
/* Layout Styles */ /* Layout Styles */
/* ----------------------------------------------------------*/ /* ----------------------------------------------------------*/

View file

@ -10,6 +10,7 @@ $(document).ready(function() {
var link = $(entry).find('link').text(); var link = $(entry).find('link').text();
var item = $('<a>') var item = $('<a>')
.attr('class', 'css-truncate')
.attr('href', link) .attr('href', link)
.attr('target', '_blank') .attr('target', '_blank')
.text(title); .text(title);