From 8db3f2b277208a3d58ede05988aafad875d03f53 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 5 Apr 2023 09:22:47 +0200 Subject: [PATCH 1/3] :bug: Fix problem with frame title rotation --- CHANGES.md | 4 ++++ frontend/src/app/main/ui/workspace/viewport/utils.cljs | 2 +- version.txt | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 347147c73..ff3eec4c0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # CHANGELOG +## 1.18.2 + +- Fix problem with frame title rotation + ## 1.18.1 ### :bug: Bugs fixed diff --git a/frontend/src/app/main/ui/workspace/viewport/utils.cljs b/frontend/src/app/main/ui/workspace/viewport/utils.cljs index 4768e0331..71124b0a1 100644 --- a/frontend/src/app/main/ui/workspace/viewport/utils.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/utils.cljs @@ -44,7 +44,7 @@ (defn left? [cur cand] - (let [closex? (mth/close? (:x cand) (:x cur))] + (let [closex? (mth/close? (:x cand) (:x cur) 0.01)] (cond (and closex? (< (:y cand) (:y cur))) cand closex? cur diff --git a/version.txt b/version.txt index ec6d649be..b57fc7228 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.18.1 +1.18.2 From 6972227b8df3efa32ac237498c02f6dd6b10e717 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 7 Apr 2023 08:55:53 +0200 Subject: [PATCH 2/3] :paperclip: Add improved docstring for penpot_secret_key --- docker/images/docker-compose.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/images/docker-compose.yaml b/docker/images/docker-compose.yaml index 8b0f671c9..7e85d178c 100644 --- a/docker/images/docker-compose.yaml +++ b/docker/images/docker-compose.yaml @@ -140,10 +140,10 @@ services: - PENPOT_FLAGS=enable-registration enable-login-with-password disable-email-verification enable-smtp enable-prepl-server ## Penpot SECRET KEY. It serves as a master key from which other keys for subsystems - ## (eg http sessions) are derived. + ## (eg http sessions, or invitations) are derived. ## - ## Leave it comment if it is ok for you to have to login again after each backend - ## restart. + ## If you leve it commented, all created sessions and invitations will + ## become invalid on container restart. ## ## If you going to uncomment this, we recommend use here a trully randomly generated ## 512 bits base64 encoded string. You can generate one with: From dfb1a79179d6dbb6010a07f795ad2dc14803ca1b Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 10 Apr 2023 16:51:05 +0200 Subject: [PATCH 3/3] :bug: Fix problem when closing paths for big imported SVGs --- common/src/app/common/geom/shapes/path.cljc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/common/src/app/common/geom/shapes/path.cljc b/common/src/app/common/geom/shapes/path.cljc index 830e98e76..bce132b4b 100644 --- a/common/src/app/common/geom/shapes/path.cljc +++ b/common/src/app/common/geom/shapes/path.cljc @@ -983,10 +983,12 @@ (defn open-path? [shape] - - (and (= :path (:type shape)) - (not (->> shape - :content - (sp/close-subpaths) - (sp/get-subpaths) - (every? sp/is-closed?))))) + (let [svg? (contains? shape :svg-attrs) + ;; No close subpaths for svgs imported + maybe-close (if svg? identity sp/close-subpaths)] + (and (= :path (:type shape)) + (not (->> shape + :content + (maybe-close) + (sp/get-subpaths) + (every? sp/is-closed?))))))