From da400929a9090ddc699002c1e8a99a2d641b7c7d Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 4 Jun 2020 13:37:22 +0200 Subject: [PATCH] Fix print slides with mermaid --- customize.dist/src/less2/include/app-print.less | 1 - www/slide/app-slide.less | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/customize.dist/src/less2/include/app-print.less b/customize.dist/src/less2/include/app-print.less index 6ff8964eb..e4c344b20 100644 --- a/customize.dist/src/less2/include/app-print.less +++ b/customize.dist/src/less2/include/app-print.less @@ -21,7 +21,6 @@ } * { visibility: hidden; - height: auto; max-height: none; } .cp-app-slide-viewer #cp-app-slide-print { diff --git a/www/slide/app-slide.less b/www/slide/app-slide.less index 09abe9fb2..a1a27a7b0 100644 --- a/www/slide/app-slide.less +++ b/www/slide/app-slide.less @@ -164,6 +164,14 @@ #cp-app-slide-editor-container { display: none; } + #cp-app-slide-print { + .cp-app-slide-frame { + pre.mermaid > svg { + height: 100%; + width: 100%; + } + } + } } #cp-app-slide-print { position: relative; @@ -336,8 +344,8 @@ * { max-width: unset; max-height: unset; - font-size: unset; line-height: unset; + font-size: 87.5%; } } ul, ol {