FS-8030 [verto_communicator] changed chat image display behavior (break line before rendering).

This commit is contained in:
Jaon EarlWolf 2015-10-16 18:37:12 -03:00
parent cf3698576f
commit 5820ffd499
2 changed files with 6 additions and 2 deletions

View File

@ -925,6 +925,10 @@ body .modal-body .btn-group .btn.active {
color: #FFF;
}
.chat-img {
display: block;
}
.chat-members .chat-member-item {
padding: 8px 16px;
height: 56px;

View File

@ -11,11 +11,11 @@
var i = 0;
width = width || 150; //default width
if(regex64.test(text)) {
text = text.replace(regex64, '<a href="$1" target="_blank"><img width="'+ width +'" src="data:image/png;base64,$2"/></a>')
text = text.replace(regex64, '<a href="$1" target="_blank"><img class="chat-img" width="'+ width +'" src="data:image/png;base64,$2"/></a>')
}
do {
text = text.replace(regex, '<a $1href="$2"><img width="'+ width +'" src="$2"/></a>');
text = text.replace(regex, '<a $1href="$2"><img class="chat-img" width="'+ width +'" src="$2"/></a>');
} while((!n || (n && i++ < n)) && regex.test(text));
return text;