From 8b924b1551858b44027e1f0b08b88bd4d4d46094 Mon Sep 17 00:00:00 2001 From: Will Miao Date: Mon, 2 Mar 2026 10:28:36 +0800 Subject: [PATCH] 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 --- static/js/components/RecipeCard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/components/RecipeCard.js b/static/js/components/RecipeCard.js index 77b5f01d..322406a9 100644 --- a/static/js/components/RecipeCard.js +++ b/static/js/components/RecipeCard.js @@ -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;