Prevent embeds from overflowing

Fixes #347
rewrite-with-urlplugin
Lorenz Hübschle-Schneider 11 years ago
parent 638aeb6697
commit 97cf908932
  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