bug fix: no multiple lines in chat image banner title

This commit is contained in:
2015-06-01 20:44:15 +02:00
parent d15d022b66
commit ec187f6d2f
4 changed files with 8 additions and 4 deletions

View File

@@ -926,6 +926,7 @@ function addMessage(message_info, bReset)
.append($('<span>', {'class':'banner_title'}).text(message_info.message.title)) .append($('<span>', {'class':'banner_title'}).text(message_info.message.title))
.addButton('close', 'Cacher les images', toggleImages, '', 'no_text no_bg'); .addButton('close', 'Cacher les images', toggleImages, '', 'no_text no_bg');
$Banner.css({'top':'calc('+Math.round(message_info.message.height / -2)+'px + 4px)'}); $Banner.css({'top':'calc('+Math.round(message_info.message.height / -2)+'px + 4px)'});
$Banner.find('.banner_title').width(message_info.message.width - 31);
$Msg.find('a').addClass('img_box').append($Banner); $Msg.find('a').addClass('img_box').append($Banner);
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -806,11 +806,14 @@
#chat_messages p .banner .banner_title { #chat_messages p .banner .banner_title {
color:$col_none; color:$col_none;
text-overflow: ellipsis;
font-size: $size_vbig; font-size: $size_vbig;
line-height:25px; line-height:25px;
margin:0 0 0 6px; margin:0 0 0 6px;
madding:0; padding:0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
} }
#chat_messages p span.text a.img_box.hidden { #chat_messages p span.text a.img_box.hidden {