From ef3b4a5895d21d70aacb42c566326ecf42fd6e17 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 17 Oct 2024 14:51:01 +0200 Subject: [PATCH 1/4] :bug: Fix problem with plugins icons --- frontend/src/app/main/ui/workspace/plugins.cljs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/plugins.cljs b/frontend/src/app/main/ui/workspace/plugins.cljs index 3beba2d16..bafa2c362 100644 --- a/frontend/src/app/main/ui/workspace/plugins.cljs +++ b/frontend/src/app/main/ui/workspace/plugins.cljs @@ -29,6 +29,15 @@ (def ^:private close-icon (i/icon-xref :close (stl/css :close-icon))) +(defn icon-url + "Creates an sanitizes de icon URL to display" + [host icon] + (dm/str host + (if (and (not (str/ends-with? host "/")) + (not (str/starts-with? icon "/"))) + "/" "") + icon)) + (mf/defc plugin-entry [{:keys [index manifest on-open-plugin on-remove-plugin]}] @@ -49,7 +58,7 @@ [:div {:class (stl/css :plugins-list-element)} [:div {:class (stl/css :plugin-icon)} [:img {:src (if (some? icon) - (dm/str host icon) + (icon-url host icon) (avatars/generate {:name name}))}]] [:div {:class (stl/css :plugin-description)} [:div {:class (stl/css :plugin-title)} name] @@ -389,7 +398,7 @@ [:div {:class (stl/css :modal-title)} [:div {:class (stl/css :plugin-icon)} [:img {:src (if (some? icon) - (dm/str host icon) + (icon-url host icon) (avatars/generate {:name name}))}]] (tr "workspace.plugins.try-out.title" (str/upper (:name plugin)))] From 22d5b125bdcf7527a13332efd7646947cebf7c1b Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 17 Oct 2024 15:08:12 +0200 Subject: [PATCH 2/4] :bug: Fix problem with layers overflowing panel --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/sidebar.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 46e567bbf..e3fb4d9d5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -46,6 +46,7 @@ - Fix percent calculation on grid layout tracks [Github #4688](https://github.com/penpot/penpot/issues/4688) - Fix problem with caps and inner shadows [Github #4517](https://github.com/penpot/penpot/issues/4517) - Fix problem with horizontal/vertical lines and shadows [Github #4516](https://github.com/penpot/penpot/issues/4516) +- Fix problem with layers overflowing panel [Taiga #9021](https://tree.taiga.io/project/penpot/issue/9021) ## 2.2.1 diff --git a/frontend/src/app/main/ui/workspace/sidebar.scss b/frontend/src/app/main/ui/workspace/sidebar.scss index af53021b1..1e0a13829 100644 --- a/frontend/src/app/main/ui/workspace/sidebar.scss +++ b/frontend/src/app/main/ui/workspace/sidebar.scss @@ -32,6 +32,7 @@ $width-settings-bar-max: $s-500; .layers-tab { padding-top: $s-4; + overflow-x: hidden; } .left-header { From 07f055bd49160c4cc6110189337ab60db138bbdc Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 17 Oct 2024 15:27:42 +0200 Subject: [PATCH 3/4] :bug: Fix problem when duplicating board with guide --- common/src/app/common/logic/libraries.cljc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/logic/libraries.cljc b/common/src/app/common/logic/libraries.cljc index 25cf38cca..61f9a2bbe 100644 --- a/common/src/app/common/logic/libraries.cljc +++ b/common/src/app/common/logic/libraries.cljc @@ -1988,7 +1988,8 @@ (+ (:position guide) (- (:y new-frame) (:y frame)))) guide {:id guide-id :frame-id new-id - :position position}] + :position position + :axis (:axis guide)}] (pcb/set-guide changes guide-id guide)) changes)) changes From df6695559403f70c202e733fdf403cb669db84be Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Fri, 18 Oct 2024 11:51:58 +0200 Subject: [PATCH 4/4] :bug: Fix problem with shadows and frames in Safari --- frontend/src/app/main/ui/shapes/frame.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/frame.cljs b/frontend/src/app/main/ui/shapes/frame.cljs index 05191e8f5..3befcda74 100644 --- a/frontend/src/app/main/ui/shapes/frame.cljs +++ b/frontend/src/app/main/ui/shapes/frame.cljs @@ -68,8 +68,8 @@ filter-id-blur (dm/fmt "filter-blur-%" render-id) filter-id-shadows (dm/fmt "filter-shadow-%" render-id) - filter-str-blur (filters/filter-str filter-id-blur shape) - filter-str-shadows (filters/filter-str filter-id-shadows shape) + filter-str-blur (filters/filter-str filter-id-blur (dissoc shape :shadow)) + filter-str-shadows (filters/filter-str filter-id-shadows (dissoc shape :blur)) x (dm/get-prop shape :x) y (dm/get-prop shape :y)