Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Show a part's failure once: hide the line under the prompt bar while its card is open

Bowen Xueffa51cd88da1
diff --git a/web/editor.css b/web/editor.css
index 4151f2b..222d55f 100644
--- a/web/editor.css
+++ b/web/editor.css
@@ -80,6 +80,8 @@
.fv-editor .fv-ed-gen-failure{display:block;flex:1 0 100%;min-width:0}
.fv-ed-failure-actions{justify-content:flex-start;width:100%}
.fv-ed-failure-reason{flex:1 1 220px;min-width:0;color:var(--fv-warning);overflow-wrap:anywhere}
+/* While the failed block's card is open it already says this; the line keeps its place so the timeline does not move. */
+.fv-editor:has(.fv-ed-clip-popover:not([hidden])) .fv-ed-gen-failure .fv-ed-failure-actions{visibility:hidden}
.fv-ed-gen-failure .fv-report-tip{width:100%}
.fv-ed-basic-progress[data-state=waiting] .fv-ed-basic-percent{font-weight:500;color:var(--fv-muted)}
.fv-ed-description{flex:1;width:0}
diff --git a/web/editor_tracks.js b/web/editor_tracks.js
index f42897a..d9b8505 100644
--- a/web/editor_tracks.js
+++ b/web/editor_tracks.js
@@ -603,8 +603,15 @@ export function createTracks(host, {state, sources = {}, t = en => en, actions =
Promise.resolve().then(() => actions.retry?.(item.clip.id)).catch(error => actions.editError?.(error, 'generate')); };
popover.replaceChildren(reason, report, retry); popover.hidden = false;
const bounds = element.getBoundingClientRect(), clipBounds = item.element.getBoundingClientRect();
- popover.style.left = `${clamp(clipBounds.left - bounds.left, 8, Math.max(8, bounds.width - 288))}px`;
- popover.style.top = `${Math.max(8, Math.min(clipBounds.bottom - bounds.top + 4, bounds.height - popover.getBoundingClientRect().height - 8))}px`;
+ // The card is as wide as the clip it belongs to (never narrower than before, so its two buttons stay on one row) and sits against the clip's lower edge;
+ // where that would cover the track below, it opens upward from the clip's top when there is room.
+ const width = Math.min(Math.max(clipBounds.width, 280), bounds.width - 16);
+ popover.style.width = `${width}px`;
+ popover.style.left = `${clamp(clipBounds.left - bounds.left, 8, Math.max(8, bounds.width - width - 8))}px`;
+ const height = popover.getBoundingClientRect().height, below = clipBounds.bottom - bounds.top + 4, above = clipBounds.top - bounds.top - 4 - height;
+ const next = [...element.querySelectorAll('.fv-ed-track-row')].map(row => row.getBoundingClientRect().top - bounds.top).filter(top => top >= clipBounds.bottom - bounds.top - 1);
+ const room = next.length ? Math.min(...next) : bounds.height;
+ popover.style.top = `${Math.max(8, below + height <= room || above < 8 ? Math.min(below, bounds.height - height - 8) : above)}px`;
}
function clickSelection(event) {
if (event.range) return;