diff --git a/frontend/package.json b/frontend/package.json index 80f2e78..882e45f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "checklist-frontend", "private": true, - "version": "1.0.95", + "version": "1.0.96", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/public/service-worker.js b/frontend/public/service-worker.js index 8569123..08d0557 100644 --- a/frontend/public/service-worker.js +++ b/frontend/public/service-worker.js @@ -1,6 +1,6 @@ // Service Worker para PWA con detección de actualizaciones // IMPORTANTE: Actualizar esta versión cada vez que se despliegue una nueva versión -const CACHE_NAME = 'ayutec-v1.0.95'; +const CACHE_NAME = 'ayutec-v1.0.96'; const urlsToCache = [ '/', '/index.html' diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index e381aa2..646e8be 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1333,11 +1333,16 @@ function QuestionsManagerModal({ checklist, onClose }) { const handleDragStart = (e, question) => { setDraggedQuestion(question) e.dataTransfer.effectAllowed = 'move' - e.currentTarget.style.opacity = '0.5' + // Hacer semi-transparente y añadir borde para feedback visual + e.currentTarget.style.opacity = '0.4' + e.currentTarget.style.transform = 'scale(0.98)' + e.currentTarget.classList.add('ring-2', 'ring-purple-500') } const handleDragEnd = (e) => { e.currentTarget.style.opacity = '1' + e.currentTarget.style.transform = 'scale(1)' + e.currentTarget.classList.remove('ring-2', 'ring-purple-500') setDraggedQuestion(null) setDragOverQuestion(null) @@ -1902,12 +1907,27 @@ function QuestionsManagerModal({ checklist, onClose }) { onDragOver={(e) => handleDragOver(e, question)} onDragLeave={handleDragLeave} onDrop={(e) => handleDrop(e, question)} - className={`p-4 hover:bg-gray-50 flex justify-between items-start cursor-move transition-all ${ + className={`p-4 hover:bg-gray-50 flex justify-between items-start cursor-move transition-all duration-200 relative ${ isSubQuestion ? 'bg-blue-50 ml-8 border-l-4 border-blue-300' : '' } ${ - dragOverQuestion?.id === question.id ? 'border-t-4 border-indigo-500' : '' + draggedQuestion?.id === question.id ? 'opacity-40 scale-95' : '' + } ${ + dragOverQuestion?.id === question.id + ? 'bg-purple-50 border-t-4 border-purple-500 shadow-lg pt-8' + : '' }`} > + {/* Indicador visual de zona de drop */} + {dragOverQuestion?.id === question.id && ( +
+
+ + + + Se moverá ANTES de esta pregunta +
+
+ )}
#{question.id}