Files
hyperframes/packages
Miguel Ángel 4916d6580c fix(studio): stop injecting inline z-index on all clips during timeline edits
Timeline move, delete, and asset-drop operations were looping over every
clip in the file and writing style="z-index: N" derived from an inverted
data-track-index mapping. This silently overrode the author's CSS z-index
— contradicting the documented contract that data-track-index does not
affect visual layering — and persisted the corruption in the source HTML.

Remove the z-index injection loops from all three timeline commit paths.
Move and delete now only patch timing/track attributes on the affected
clip. Asset drop still sets z-index on the newly created element via the
generated HTML, without touching existing clips. Delete the now-unused
buildTrackZIndexMap helper.

Also fix patchInlineStyleInTag to handle self-closing void elements: the
old code produced malformed `<img ... / style="z-index: 7">` because it
didn't account for the trailing `/` before appending the style attribute.

Closes #958
2026-05-19 12:42:46 -04:00
..
2026-05-18 22:00:56 -04:00
2026-05-18 22:00:56 -04:00
2026-05-18 22:00:56 -04:00
2026-05-18 22:00:56 -04:00
2026-05-18 22:00:56 -04:00
2026-05-18 22:00:56 -04:00
2026-05-18 22:00:56 -04:00