fix image sizes in /slide/

This commit is contained in:
Pierre Bondoerffer 2017-08-08 11:44:01 +02:00
parent 88be5444f0
commit f585ddccdf
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236
2 changed files with 13 additions and 0 deletions

View File

@ -60,6 +60,10 @@ define([
return out;
};
renderer.paragraph = function (p) {
return /<media\-tag[\s\S]*>/i.test(p)? p + '\n': '<p>' + p + '</p>\n';
};
var MutationObserver = window.MutationObserver;
var forbiddenTags = [
'SCRIPT',

View File

@ -336,6 +336,15 @@ div#modal #content, #print {
padding-left: 0.3em;
}
// fixes image overflowing
media-tag {
height: 100%;
& + * {
margin-top: 1rem;
}
}
img {
position: relative;
min-width: 1%;