mirror of
https://github.com/penpot/penpot.git
synced 2026-08-29 08:08:46 +00:00
Converting a component's main frame to a grid only propagated the :layout and track attributes to its copies: update-grid-copy-attrs was gated on the copy shape (still a plain frame at sync time) and, once running, merge-cells kept the copy's empty cells instead of taking the main's. Copies ended up with no cells and a later reflow snapped their children back to the old order. Gate the grid sync on the main shape (like the flex branch) and take the main's remapped cells wholesale when the copy has not touched its :layout-grid-cells group. AI-assisted-by: deepseek-v4-pro