Fix dragging cursors

This commit is contained in:
Charlotte Van Petegem 2025-05-25 11:15:38 +02:00
parent ac8a912c18
commit b3c1013cac
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
3 changed files with 12 additions and 0 deletions

View file

@ -135,6 +135,11 @@ input[type=submit] {
align-items: center;
border: 1px solid black;
padding: 0.5rem;
cursor: grab;
}
.politician-answer-dragging {
cursor: grabbing;
}
.acrostic-puzzle {
@ -179,6 +184,11 @@ input[type=submit] {
text-align: center;
word-break: keep-all;
white-space: nowrap;
cursor: grab;
}
.connections-element-dragging {
cursor: grabbing;
}
@media (max-width: 1024px) {

View file

@ -10,6 +10,7 @@ export default function initConnectionsQuestions() {
Sortable.create(list, {
swap: true,
dragClass: 'connections-element-dragging',
onUpdate: (event) => {
const newOrder = Array.from(event.to.children).map((el) => Number.parseInt(el.dataset.id))
submitValue(submitUrl, { order: newOrder })

View file

@ -9,6 +9,7 @@ export default function initPoliticianQuestions() {
Sortable.create(list, {
swap: true,
filter: ".politician-image",
dragClass: 'politician-answer-dragging',
onUpdate: (event) => {
const newOrder = Array.from(event.to.children).map((el) => Number.parseInt(el.dataset.id))
submitValue(submitUrl, { order: newOrder })