From 7c10f20b95fc34ec7a8defa32c0ff3609a19b390 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 12 Dec 2024 11:57:08 +0100 Subject: [PATCH 1/2] :books: Remove deprecated video at History version --- docs/user-guide/workspace-basics/index.njk | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/user-guide/workspace-basics/index.njk b/docs/user-guide/workspace-basics/index.njk index dfb5bee2a..09fb5a07e 100644 --- a/docs/user-guide/workspace-basics/index.njk +++ b/docs/user-guide/workspace-basics/index.njk @@ -250,11 +250,6 @@ geometric structure. In Penpot there are three types of guides:

Navigate actions

To navigate through the actions press Ctrl/⌘ + Z to go backwards and Ctrl/⌘ + Shift/⇧ + Z to go forward.

You can also press any item of the actions list to get to this specific state.

-
- -

Comments

Comments allow the team to have one priceless conversation getting and providing feedback right over the designs and prototypes.

From 377f636b8e8cbe37b4b0bbeec10a038b7cbf8843 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 11 Dec 2024 14:20:06 +0100 Subject: [PATCH 2/2] :bug: Fix problem with reorder on grid layout layers --- CHANGES.md | 1 + common/src/app/common/logic/shapes.cljc | 4 +++- common/src/app/common/types/shape/layout.cljc | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 76dac53f8..55cff84bb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -31,6 +31,7 @@ ### :bug: Bugs fixed - Fix problem with some texts desynchronization [Taiga #9379](https://tree.taiga.io/project/penpot/issue/9379) +- Fix problem with reoder grid layers [#5446](https://github.com/penpot/penpot/issues/5446) ## 2.3.3 diff --git a/common/src/app/common/logic/shapes.cljc b/common/src/app/common/logic/shapes.cljc index a3dee6960..2d9dd4464 100644 --- a/common/src/app/common/logic/shapes.cljc +++ b/common/src/app/common/logic/shapes.cljc @@ -304,7 +304,9 @@ (->> ids (mapcat #(ctn/get-child-heads objects %)) (map :id))) - cell (or cell (ctl/get-cell-by-index parent to-index))] + + index-cell-data (when to-index (ctl/get-cell-by-index parent to-index)) + cell (or cell (and index-cell-data [(:row index-cell-data) (:column index-cell-data)]))] (-> changes (pcb/with-page-id page-id) diff --git a/common/src/app/common/types/shape/layout.cljc b/common/src/app/common/types/shape/layout.cljc index 1101fd55a..84a8f0000 100644 --- a/common/src/app/common/types/shape/layout.cljc +++ b/common/src/app/common/types/shape/layout.cljc @@ -1479,7 +1479,7 @@ (defn get-cell-by-index [parent to-index] (let [cells (get-cells parent {:sort? true :remove-empty? true}) - to-index (- (count cells) to-index)] + to-index (- (count cells) to-index 1)] (nth cells to-index nil))) (defn add-children-to-index