fix(recipes): add data-folder attribute to RecipeCard for correct drag-drop path calculation

This commit is contained in:
Will Miao
2026-02-02 22:18:13 +08:00
parent 0dba1b336d
commit c30e57ede8

View File

@@ -26,6 +26,7 @@ class RecipeCard {
card.dataset.nsfwLevel = this.recipe.preview_nsfw_level || 0;
card.dataset.created = this.recipe.created_date;
card.dataset.id = this.recipe.id || '';
card.dataset.folder = this.recipe.folder || '';
// Get base model with fallback
const baseModelLabel = (this.recipe.base_model || '').trim() || 'Unknown';