diff --git a/app/javascript/elements/dashboard_dropzone.js b/app/javascript/elements/dashboard_dropzone.js index 3ac0a4c7..60cd0b91 100644 --- a/app/javascript/elements/dashboard_dropzone.js +++ b/app/javascript/elements/dashboard_dropzone.js @@ -168,10 +168,10 @@ export default targetable(class extends HTMLElement { if (this.classList.contains('before:border-base-300')) { this.classList.remove('before:border-base-300') - this.classList.add('before:border-base-content/50') + this.classList.add('before:border-base-content/30') } else if (this.classList.contains('border-base-300')) { this.classList.remove('border-base-300') - this.classList.add('border-base-content/50') + this.classList.add('border-base-content/30') } } } @@ -179,11 +179,11 @@ export default targetable(class extends HTMLElement { onDragleave () { this.style.backgroundColor = null - if (this.classList.contains('before:border-base-content/50')) { - this.classList.remove('before:border-base-content/50') + if (this.classList.contains('before:border-base-content/30')) { + this.classList.remove('before:border-base-content/30') this.classList.add('before:border-base-300') - } else if (this.classList.contains('border-base-content/50')) { - this.classList.remove('border-base-content/50') + } else if (this.classList.contains('border-base-content/30')) { + this.classList.remove('border-base-content/30') this.classList.add('border-base-300') } } diff --git a/app/javascript/elements/file_dropzone.js b/app/javascript/elements/file_dropzone.js index 02fc1083..12ef253d 100644 --- a/app/javascript/elements/file_dropzone.js +++ b/app/javascript/elements/file_dropzone.js @@ -28,13 +28,13 @@ export default actionable(targetable(class extends HTMLElement { if (e.dataTransfer?.types?.includes('Files')) { this.style.backgroundColor = '#F7F3F0' this.classList.remove('border-base-300', 'hover:bg-base-200/30') - this.classList.add('border-base-content/50') + this.classList.add('border-base-content/30') } } onDragleave () { this.style.backgroundColor = null - this.classList.remove('border-base-content/50') + this.classList.remove('border-base-content/30') this.classList.add('border-base-300', 'hover:bg-base-200/30') } diff --git a/app/javascript/template_builder/dropzone.vue b/app/javascript/template_builder/dropzone.vue index e6f0030d..9031f3d1 100644 --- a/app/javascript/template_builder/dropzone.vue +++ b/app/javascript/template_builder/dropzone.vue @@ -10,7 +10,7 @@ id="document_dropzone" class="w-full relative rounded-md border-2 border-base-content/10 border-dashed" :for="inputId" - :class="{ 'opacity-50': isLoading, 'hover:bg-base-200/50': !isDragEntering, 'bg-base-200/50 border-base-content/50': isDragEntering }" + :class="{ 'opacity-50': isLoading, 'hover:bg-base-200/50': withHoverClass && !isDragEntering, 'bg-base-200/50 border-base-content/30': isDragEntering }" >