feat: add draggable attribute to recipe card elements

- Set draggable=true on recipe card div elements to enable drag-and-drop functionality
- This allows users to drag recipe cards for reordering or other interactions
This commit is contained in:
Will Miao
2026-03-02 10:28:36 +08:00
parent ce08935b1e
commit 8b924b1551

View File

@@ -21,6 +21,7 @@ class RecipeCard {
createCardElement() {
const card = document.createElement('div');
card.className = 'model-card';
card.draggable = true;
card.dataset.filepath = this.recipe.file_path;
card.dataset.title = this.recipe.title;
card.dataset.nsfwLevel = this.recipe.preview_nsfw_level || 0;