diff --git a/frontend/src/app/main/ui/render.cljs b/frontend/src/app/main/ui/render.cljs index 59a31d16a..9cea9c60a 100644 --- a/frontend/src/app/main/ui/render.cljs +++ b/frontend/src/app/main/ui/render.cljs @@ -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" diff --git a/frontend/src/app/util/dom.cljs b/frontend/src/app/util/dom.cljs index 91ff3ab2e..5c3074e14 100644 --- a/frontend/src/app/util/dom.cljs +++ b/frontend/src/app/util/dom.cljs @@ -55,6 +55,10 @@ (.insertAdjacentHTML head "beforeend" (str "")))) (defn get-element-by-class