feat: Add support for editing video

Add an Edit
This commit is contained in:
Claude Worker
2026-07-18 16:43:15 +00:00
parent 94dba16ff6
commit 8c0776f97d
7 changed files with 834 additions and 21 deletions

View File

@@ -2207,3 +2207,55 @@ input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }
padding-right: calc(14px + env(safe-area-inset-right, 0px));
}
}
/* ============================================================================
* Video editor modal (Edit & download) + edited-video badges
* ========================================================================== */
.video-editor { display: flex; flex-direction: column; gap: 12px; }
.video-editor .ve-intro { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.video-editor .ve-add-row {
display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap;
}
.video-editor .ve-add-row label {
display: flex; flex-direction: column; gap: 4px;
font-size: 12px; color: var(--text-2); flex: 1 1 90px;
}
.video-editor .ve-add-row input {
background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px; width: 100%;
}
.video-editor .ve-add-row input:focus { outline: none; border-color: var(--accent); }
.video-editor .ve-add { flex: 0 0 auto; }
.video-editor .ve-error {
color: var(--accent-bright); font-size: 12.5px; margin: -4px 0 0;
}
.video-editor .ve-cuts { display: flex; flex-direction: column; gap: 6px; }
.video-editor .ve-cut {
display: flex; align-items: center; justify-content: space-between;
background: var(--bg-2); border: 1px solid var(--line);
border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13.5px;
}
.video-editor .ve-cut-del {
background: transparent; border: none; color: var(--text-2);
cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px;
}
.video-editor .ve-cut-del:hover { color: #fff; background: var(--accent); }
.video-editor .ve-title-row {
display: flex; flex-direction: column; gap: 4px;
font-size: 12px; color: var(--text-2);
}
.video-editor .ve-title {
background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px;
}
.video-editor .ve-title:focus { outline: none; border-color: var(--accent); }
.video-editor .ve-summary { color: var(--text); font-size: 13.5px; }
/* Badge marking an edited (custom) copy in the Saved list and on cards. */
.edit-badge {
position: absolute; top: 4px; left: 4px;
background: var(--accent); color: #fff; font-size: 11px;
line-height: 1; padding: 3px 5px; border-radius: 6px;
box-shadow: 0 2px 6px -2px var(--accent-glow);
}
.saved-card.custom .thumb { position: relative; }