make class for embedded image, and fix its height parameter so its

better for small images
This commit is contained in:
Tor Hveem 2013-10-28 13:25:36 +01:00
parent 6258303465
commit d57127cc84
2 changed files with 5 additions and 1 deletions

View file

@ -304,3 +304,7 @@ li.notification {
height: 15px;
background: rgba(255,255,255,0.5);
}
img.embed {
max-height: 300px;
}

View file

@ -226,7 +226,7 @@ plugins.factory('userPlugins', function() {
url = url.replace(/.*\//, "http://media.fukung.net/imgs/")
}
content = '<a target="_blank" href="'+url+'"><img src="' + url + '" height="300"></a>';
content = '<a target="_blank" href="'+url+'"><img class="embed" src="' + url + '"></a>';
}
}