make class for embedded image, and fix its height parameter so its
better for small images
This commit is contained in:
parent
6258303465
commit
d57127cc84
|
@ -304,3 +304,7 @@ li.notification {
|
||||||
height: 15px;
|
height: 15px;
|
||||||
background: rgba(255,255,255,0.5);
|
background: rgba(255,255,255,0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img.embed {
|
||||||
|
max-height: 300px;
|
||||||
|
}
|
||||||
|
|
|
@ -226,7 +226,7 @@ plugins.factory('userPlugins', function() {
|
||||||
url = url.replace(/.*\//, "http://media.fukung.net/imgs/")
|
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>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue