diff --git a/harvester-app/src/framework/utils/css/moduloInicio.css b/harvester-app/src/framework/utils/css/moduloInicio.css index 62beeb25..6073bc4e 100644 --- a/harvester-app/src/framework/utils/css/moduloInicio.css +++ b/harvester-app/src/framework/utils/css/moduloInicio.css @@ -36,11 +36,9 @@ display: flex; flex-direction: column; align-items: center; - justify-content: space-between; - flex-shrink: 0; + justify-content: space-evenly; width: 414px; - height: 343px; - position: relative; + height: 75%; } .texto-usar-excel { color: var(--texto-light, #000000); @@ -93,10 +91,6 @@ justify-content: center; } .boton-borrar { - position: absolute; - right: 8px; - top: 50%; - transform: translateY(-50%); padding: 0; display: none; background: transparent; @@ -148,7 +142,8 @@ display: none; } .avanzar-analisis:disabled { - background: #DADADB; + cursor: default; + background: #DADADB; } .avanzar-analisis { background: var(--primario, #a61930); diff --git a/harvester-app/src/framework/utils/js/moduloInicio.js b/harvester-app/src/framework/utils/js/moduloInicio.js index f62b71b2..026106b8 100644 --- a/harvester-app/src/framework/utils/js/moduloInicio.js +++ b/harvester-app/src/framework/utils/js/moduloInicio.js @@ -99,6 +99,11 @@ function botonCargar() { } else { // Si hubo error de validación, mostramos el mensaje elementoNombreArchivo.textContent = 'Sin archivo seleccionado'; + botonBorrar.style.display = 'none'; + botonAnalisis.setAttribute('disabled', 'true'); + botonAnalisis.style.cursor = 'default'; + localStorage.removeItem('nombreArchivoExcel'); + localStorage.removeItem('datosExcel'); // Mostrar modal con el error de validación Swal.fire({ @@ -118,6 +123,9 @@ function botonCargar() { // Actualizar UI elementoNombreArchivo.textContent = 'Sin archivo seleccionado'; + botonAnalisis.setAttribute('disabled', 'true'); + localStorage.removeItem('nombreArchivoExcel'); + localStorage.removeItem('datosExcel'); // Mostrar modal con el error Swal.fire({