Merge pull request #364 from glowing-bear/embedmaxwidth

Prevent embeds from overflowing
rewrite-with-urlplugin
Tor Hveem 11 years ago
commit c57b4d0cc7
  1. 8
      css/glowingbear.css
  2. 2
      directives/plugin.html

@ -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%;
}

@ -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">

Loading…
Cancel
Save