diff --git a/css/qvitter.css b/css/qvitter.css index c73493f..a207255 100644 --- a/css/qvitter.css +++ b/css/qvitter.css @@ -1596,6 +1596,7 @@ body.rtl .queet .attachments:hover { } .queet .attachments img { + background-color: #fff; border:1px solid rgba(255,255,255,0,5); margin-bottom:20px; margin-right:15px; diff --git a/js/dom-functions.js b/js/dom-functions.js index a0847d7..15c33ce 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -979,8 +979,8 @@ function expand_queet(q,doScrolling) { // attachments in the content link to /attachment/etc url and not direct to image/video, link is in title if(typeof attachment_title != 'undefined') { // images - if($.inArray(attachment_mimetype, ['image/gif', 'image/jpeg', 'image/png']) >= 0 - || $.inArray(attachment_title_extension, ['jpeg', 'gif', 'jpg','png']) >= 0) { + if($.inArray(attachment_mimetype, ['image/gif', 'image/jpeg', 'image/png', , 'image/svg+xml']) >= 0 + || $.inArray(attachment_title_extension, ['jpeg', 'gif', 'jpg','png','svg']) >= 0) { if(q.children('.queet').find('.expanded-content').children('.media').children('a[href="' + attachment_title + '"]').length < 1) { // not if already showed // local attachment with a thumbnail @@ -1808,6 +1808,9 @@ function buildQueetHtml(obj, idInStream, extraClassesThisRun, requeeted_by, isCo attachment_html = attachment_html + ''; } + else if (this.mimetype == 'image/svg+xml') { + attachment_html = attachment_html + ''; + } }); } if(attachment_html.length>0) {