🐛 Fix extra blank pages when exporting to PDF

This commit is contained in:
Andrés Moya 2021-09-09 14:11:50 +02:00
parent f03a74abc7
commit 60cb358cce
2 changed files with 6 additions and 2 deletions

View file

@ -80,8 +80,8 @@
(mf/use-effect
(mf/deps width height)
#(dom/set-page-style {:size (str (mth/round width) "px "
(mth/round height) "px")}))
#(dom/set-page-style {:size (str (mth/ceil (+ width padding padding)) "px "
(mth/ceil (+ height padding padding)) "px")}))
[:& (mf/provider embed/context) {:value true}
[:svg {:id "screenshot"