make image width max out at 100%
This commit is contained in:
parent
a2715ca963
commit
32efbeb903
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ var Stream = {
|
|||
$(".stream a[target='_blank']").each(function(){
|
||||
var link = $(this);
|
||||
if(link.attr('href').match(/\.gif$|\.jpg$|\.png$|\.jpeg$/)) {
|
||||
link.parent().append("<img src='" + this.href + "'</img>");
|
||||
link.parent().append("<img width='100%' src='" + this.href + "' />");
|
||||
link.remove();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue