mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
The compare dialog drew nothing for a deleted layer when the branch was open, and nothing for an added one when main was: the diff named the layer by id and label only, and the open file lacks it. The detail pane was left with the layer's name and nothing else. Added and deleted shape entries now carry the whole shape, as the document that holds it has it, under `:shape`. The key names no side, so it reads the same in both directions. The previews use it. A layer added or deleted inside a board is shown in that board on both sides, outlined in green or red on the side that holds it, so the change reads as what the board gains or loses. The facts of the detail pane (where it was, type, size) read it as well. A board that moved or resized now draws at its own size on the side the open file lacks: the diff leaves out `:selrect` and `:points`, so they are rebuilt from position and size instead of kept from the open side.