Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

fix(docs): highlight nested demo selections

rpone9f253465ce08
diff --git a/docs/.vitepress/theme/components/SemanticVideoDemo.vue b/docs/.vitepress/theme/components/SemanticVideoDemo.vue
index 6f8aec9e..b749f9df 100644
--- a/docs/.vitepress/theme/components/SemanticVideoDemo.vue
+++ b/docs/.vitepress/theme/components/SemanticVideoDemo.vue
@@ -147,7 +147,16 @@ const sourceSelections = computed(() => {
.sort((left, right) => left.depth - right.depth)[0]
: undefined;
const outerSelection = config.selections.find((selection) => selection.id === outer?.id);
- return outerSelection && outerSelection.id !== pinned.id ? [outerSelection, pinned] : [pinned];
+ const pinnedSelections = outerSelection && outerSelection.id !== pinned.id
+ ? [outerSelection, pinned]
+ : [pinned];
+ const activeNestedOverlay = pinned.layer === "scene"
+ && activeOverlaySelection.value
+ && activeOverlaySelection.value.start >= pinned.start
+ && activeOverlaySelection.value.end <= pinned.end
+ ? activeOverlaySelection.value
+ : null;
+ return activeNestedOverlay ? [...pinnedSelections, activeNestedOverlay] : pinnedSelections;
});
const sourceWordLine = computed(() => {