mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
fix: preserve Scene shot labels for double-click rename
This commit is contained in:
1 parent
9b6d34cb8a
commit
1f76f81484
6 files changed
+65
-3
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user