From f585ddccdf5db49691950aa0c17ca9c99d7f7252 Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Tue, 8 Aug 2017 11:44:01 +0200 Subject: [PATCH] fix image sizes in /slide/ --- www/common/diffMarked.js | 4 ++++ www/slide/slide.less | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 42da27b97..f72d5277e 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -60,6 +60,10 @@ define([ return out; }; + renderer.paragraph = function (p) { + return //i.test(p)? p + '\n': '

' + p + '

\n'; + }; + var MutationObserver = window.MutationObserver; var forbiddenTags = [ 'SCRIPT', diff --git a/www/slide/slide.less b/www/slide/slide.less index ef50796b9..0e8c414db 100644 --- a/www/slide/slide.less +++ b/www/slide/slide.less @@ -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%;