Merge pull request #364 from glowing-bear/embedmaxwidth

Prevent embeds from overflowing
This commit is contained in:
Tor Hveem 2014-07-18 15:01:45 +02:00
commit c57b4d0cc7
2 changed files with 8 additions and 2 deletions

View file

@ -336,8 +336,14 @@ li.notification {
background: rgba(255,255,255,0.5);
}
img.embed {
div.embed * {
max-width: 100%;
}
/* not for all img embeds so as not to affect the yr plugin (302px) */
div.embed img.embed {
max-height: 300px;
max-width: 100%;
}

View file

@ -4,7 +4,7 @@
Hide {{ plugin.name }}
</button>
<div ng-bind-html="displayedContent" bo-class="'embed_' + plugin.$$hashKey"></div>
<div ng-bind-html="displayedContent" class="embed" bo-class="'embed_' + plugin.$$hashKey"></div>
</div>
<div ng-hide="plugin.visible">