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))
.addButton('close', 'Cacher les images', toggleImages, '', 'no_text no_bg');
$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);
}