diff --git a/docker-compose.hub.yml b/docker-compose.hub.yml index 8bd14da..273da2e 100644 --- a/docker-compose.hub.yml +++ b/docker-compose.hub.yml @@ -38,7 +38,7 @@ services: command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 4 frontend: - image: dymai/syntria-frontend:1.0.22 + image: dymai/syntria-frontend:1.0.23 container_name: syntria-frontend-prod restart: always depends_on: diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 1b6a202..f3b58d4 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1266,8 +1266,8 @@ function QuestionsManagerModal({ checklist, onClose }) { >
- #{question.id} -
+
#{question.id}
+
{isSubQuestion && ( @@ -1777,9 +1777,23 @@ function InspectionDetailModal({ inspection, user, onClose, onUpdate }) {
)} - {/* Photos */} - {answer.photos && answer.photos.length > 0 && ( -
+ {/* Photos - NUEVO: miniaturas de media_files */} + {(answer.media_files && answer.media_files.length > 0) && ( +
+ {answer.media_files.map((media, idx) => ( + {`Foto window.open(media.file_path, '_blank')} + /> + ))} +
+ )} + {/* Photos - compatibilidad legacy */} + {(answer.photos && answer.photos.length > 0) && ( +
{answer.photos.map((photo, idx) => (
-
+
{u.username.charAt(0).toUpperCase()}