Files
hyperframes/packages
Miguel Angel Simon Sierra 7c9bbd62b7 fix(studio): let a text-layer change save, and stop it losing what it had
Three faults that met in one place: an element whose children are text layers.

Removing a layer, or adding one, could never save. The per-child operations
can only address children that already exist, so they refuse any change in how
many there are — which is every add and every delete. The panel offered both
buttons and both ended in "Couldn't save this text structure change". A
structure change now writes the structure, through the same operation an
inline style edit already uses.

Styling a run of characters threw away the identity of every layer in the
element. The rebuild emitted fresh, bare spans, so the attribute the panel
tracks a layer by went with them, and afterwards nothing the panel offered
could match a layer to its source. Runs now carry the child they came from and
the rebuild puts its identity back, without duplicating it onto a run that was
split off.

Saving a styled run deleted its neighbours' typography. The allowlist was
paint-only, on the reasoning that text edits should not move or resize things
— but the design panel writes exactly those typography properties onto exactly
those spans, so the rule did not stop text changing layout, it deleted the
layout the user had set. Colouring one word dropped a sibling's font size.
2026-08-07 12:02:38 -07:00
..
2026-08-07 15:31:57 +00:00
2026-08-07 15:31:57 +00:00
2026-08-07 15:31:57 +00:00
2026-08-07 15:31:57 +00:00
2026-08-07 15:31:57 +00:00
2026-08-07 15:31:57 +00:00
2026-08-07 15:31:57 +00:00
2026-08-07 15:31:57 +00:00
2026-08-07 15:31:57 +00:00