Polish editor timeline interactions

This commit is contained in:
iye
2026-05-27 17:59:55 +08:00
parent 134778dde8
commit 5edfa05369
8 changed files with 511 additions and 126 deletions
+2 -2
View File
@@ -626,7 +626,7 @@
</div>
<div class="actions">
<button class="btn btn-edit-toggle" type="button" id="edit-toggle-btn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h11"/></svg>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 7 2 2 4-4"/><path d="m3 17 2 2 4-4"/><path d="M13 6h8"/><path d="M13 12h8"/><path d="M13 18h8"/></svg>
<span class="btn-edit-label">管理商品</span>
</button>
<button class="btn btn-primary btn-create" type="button" id="open-new-product">
@@ -1321,7 +1321,7 @@ function enterEditMode() {
function exitEditMode() {
document.body.classList.remove('edit-mode');
editToggleBtn.classList.remove('active');
editLabel.textContent = '编辑商品';
editLabel.textContent = '管理商品';
document.querySelectorAll('.product-card.selected').forEach(c => c.classList.remove('selected'));
}
editToggleBtn.addEventListener('click', () => {