Animate queue drag and drop reordering

This commit is contained in:
2026-09-23 22:18:21 +02:00
parent 89820c1377
commit 74cf534be5
2 changed files with 38 additions and 4 deletions
+18
View File
@@ -206,6 +206,24 @@
visibility: visible;
}
}
@utility queue-row {
position: relative;
transition:
margin var(--mf-motion-base) var(--mf-ease),
opacity var(--mf-motion-base) var(--mf-ease),
scale var(--mf-motion-base) var(--mf-ease);
&[data-dragging] {
opacity: 0.4;
scale: 0.97;
}
&[data-drop='before'] {
margin-top: --spacing(14);
}
&[data-drop='after'] {
margin-bottom: --spacing(14);
}
}
@utility app-main {
--mf-dock-h: 0px;
padding-bottom: calc(var(--mf-nav-h) + var(--mf-safe-b) + var(--mf-dock-h));