diff --git a/common/src/app/common/geom/shapes/points.cljc b/common/src/app/common/geom/shapes/points.cljc index d04ad06a0..206494d49 100644 --- a/common/src/app/common/geom/shapes/points.cljc +++ b/common/src/app/common/geom/shapes/points.cljc @@ -54,11 +54,11 @@ (defn width-points [[p0 p1 _ _]] - (gpt/length (gpt/to-vec p0 p1))) + (max 0.01 (gpt/length (gpt/to-vec p0 p1)))) (defn height-points [[p0 _ _ p3]] - (gpt/length (gpt/to-vec p0 p3))) + (max 0.01 (gpt/length (gpt/to-vec p0 p3)))) (defn pad-points [[p0 p1 p2 p3 :as points] pad-top pad-right pad-bottom pad-left] diff --git a/frontend/src/app/main/ui/workspace/shapes/frame/thumbnail_render.cljs b/frontend/src/app/main/ui/workspace/shapes/frame/thumbnail_render.cljs index c8a1a2c3d..46974dddd 100644 --- a/frontend/src/app/main/ui/workspace/shapes/frame/thumbnail_render.cljs +++ b/frontend/src/app/main/ui/workspace/shapes/frame/thumbnail_render.cljs @@ -110,7 +110,9 @@ (let [canvas-node (mf/ref-val frame-canvas-ref) img-node (mf/ref-val frame-image-ref)] (when (draw-thumbnail-canvas! canvas-node img-node) - (reset! image-url nil) + (when-not (cf/check-browser? :safari) + (reset! image-url nil)) + (when @show-frame-thumbnail (reset! show-frame-thumbnail false)) ;; If we don't have the thumbnail data saved (normally the first load) we update the data @@ -272,8 +274,7 @@ :height fixed-height ;; DEBUG :style {:filter (when (and (not (cf/check-browser? :safari)) (debug? :thumbnails)) "invert(1)") - :width "100%" - :height "100%"}}]] + :display (when (cf/check-browser? :safari) "none")}}]] ;; Safari don't support filters so instead we add a rectangle around the thumbnail (when (and (cf/check-browser? :safari) (debug? :thumbnails))