diff --git a/CHANGES.md b/CHANGES.md index 9c70c7504..2b95e7223 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -47,6 +47,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 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:
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 allow the team to have one priceless conversation getting and providing feedback right over the designs and prototypes.