fix: preserve Scene shot labels for double-click rename

This commit is contained in:
Sameh Khamis committed 2026-09-13 03:56:23 -07:00
1 parent 9b6d34cb8a
commit 1f76f81484
6 files changed
+65 -3

No files matched your search

+7
View File
@@ -54,6 +54,7 @@ export function renderSceneShots(
for (const shot of scene.shots) {
const row = document.createElement('div');
row.className = 'scene-shot-row';
row.dataset.sceneShotId = shot.id;
row.classList.toggle('active', shot.id === state.selectedShotId);
const top = document.createElement('div');
top.className = 'scene-shot-top';
@@ -90,6 +91,12 @@ export function renderSceneShots(
}
}
export function presentSceneSelection(element, selectedShotId) {
for (const row of element?.children || []) {
row.classList.toggle('active', row.dataset.sceneShotId === selectedShotId);
}
}
export function presentSceneButtons(elements, running, hasRun) {
for (const name of [
'start',