Drag to reorder weapons in comp analyzer
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This commit is contained in:
Kalle
2026-04-21 08:59:44 +03:00
parent 285e5de395
commit ab5cb9d91e
20 changed files with 208 additions and 66 deletions

View File

@@ -8,6 +8,11 @@
display: flex;
align-items: center;
gap: var(--s-2);
transition: opacity 0.2s;
&.isDragging {
opacity: 0.5;
}
}
.weaponImageContainer {
@@ -100,6 +105,28 @@
}
}
.dragHandle {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
padding: 0;
background: none;
border: none;
font-size: var(--font-md);
line-height: 1;
color: var(--color-text-high);
cursor: grab;
user-select: none;
touch-action: none;
flex-shrink: 0;
&:active {
cursor: grabbing;
}
}
.subSpecialContainer {
display: flex;
gap: var(--s-2);