优化拖拽

This commit is contained in:
yml2213
2026-08-16 14:38:10 +08:00
parent 4dd94cde27
commit c4e7e67115
2 changed files with 134 additions and 10 deletions
+65
View File
@@ -232,9 +232,74 @@ select {
}
.image-upload-droppable {
position: relative;
display: grid;
gap: 8px;
justify-items: start;
border-radius: 10px;
padding: 6px;
margin: -6px;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.image-upload-droppable.is-dragging {
background: var(--theme-primary-soft, #fff3e8);
}
.image-upload-drag-overlay {
position: absolute;
inset: 0;
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6px;
background: rgba(255, 255, 255, 0.94);
backdrop-filter: blur(4px);
border: 2px dashed var(--theme-primary, #ff6a00);
border-radius: 10px;
color: var(--theme-primary, #ff6a00);
pointer-events: none;
animation: uploadFadeIn 0.15s ease-out;
box-shadow: 0 8px 24px var(--theme-primary-shadow, rgba(255, 106, 0, 0.14));
}
.image-upload-drag-icon {
font-size: 32px;
color: var(--theme-primary, #ff6a00);
animation: uploadBounce 0.8s infinite alternate ease-in-out;
}
.image-upload-drag-text {
font-size: 13px;
font-weight: 600;
color: #1e293b;
}
.image-upload-drag-subtext {
font-size: 11px;
color: #64748b;
}
@keyframes uploadFadeIn {
from {
opacity: 0;
transform: scale(0.98);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes uploadBounce {
from {
transform: translateY(0);
}
to {
transform: translateY(-4px);
}
}
.image-upload-hint {