Add tag editing functionality and update compact tags rendering

This commit is contained in:
Will Miao
2025-06-13 20:42:44 +08:00
parent dc0a49f96d
commit f966514bc7
4 changed files with 502 additions and 13 deletions

View File

@@ -354,7 +354,8 @@ export function setupTriggerWordsEditMode() {
}
// Remove dropdown if present
const dropdown = document.querySelector('.metadata-suggestions-dropdown');
const triggerWordsSection = editBtn.closest('.trigger-words');
const dropdown = triggerWordsSection.querySelector('.metadata-suggestions-dropdown');
if (dropdown) dropdown.remove();
}
});