提交 5820ffd4 authored 作者: Jaon EarlWolf's avatar Jaon EarlWolf

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

上级 cf369857
......@@ -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;
......
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论