From 37d8b4499c5259bc0c3e9f6e2e95cfd54cf941ef Mon Sep 17 00:00:00 2001
From: GMrrc <143954951+GMrrc@users.noreply.github.com>
Date: Thu, 21 Nov 2024 15:55:02 +0100
Subject: [PATCH] css on dragover
---
src/components/FileTable.vue | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/components/FileTable.vue b/src/components/FileTable.vue
index f98fd96..d134d69 100644
--- a/src/components/FileTable.vue
+++ b/src/components/FileTable.vue
@@ -51,9 +51,9 @@
+ 'overflow-y-auto h-full rounded-xl relative',
+ isDragging ? 'border-green-500 border-4 border-dashed transition-all ease-in-out' : ''
+ ]" @drop.prevent="onDrop">
+
+
+
+
@@ -164,10 +169,12 @@ export default {
const parts = this.breadcrumbParts.slice(0, index + 1);
return '/' + parts.join('/');
},
- enterDrag() {
+ onDragEnter(event) {
+ event.preventDefault();
this.isDragging = true;
},
- leaveDrag() {
+ onDragLeave(event) {
+ event.preventDefault();
this.isDragging = false;
},
getBreadcrumbParts() {
@@ -214,6 +221,7 @@ export default {
},
async onDrop(event) {
event.preventDefault();
+ this.isDragging = false;
try {
this.isTransfering = true;