mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
better edit behavior for contents
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -725,6 +725,10 @@
|
|||||||
if (!item) {
|
if (!item) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (item.classList.contains("data-editing")) {
|
||||||
|
event.preventDefault();
|
||||||
|
return;
|
||||||
|
}
|
||||||
draggedItem = item;
|
draggedItem = item;
|
||||||
item.dataset.dragging = "true";
|
item.dataset.dragging = "true";
|
||||||
draggedItem.classList.add("opacity-60");
|
draggedItem.classList.add("opacity-60");
|
||||||
|
|||||||
@@ -26,15 +26,6 @@
|
|||||||
<div class="border border-slate-200 border-b-0 bg-stone-100 rounded-xs rounded-b-none">
|
<div class="border border-slate-200 border-b-0 bg-stone-100 rounded-xs rounded-b-none">
|
||||||
<div class="flex flex-wrap items-center justify-between gap-4 border-b border-slate-200 bg-stone-200 px-3 py-2">
|
<div class="flex flex-wrap items-center justify-between gap-4 border-b border-slate-200 bg-stone-200 px-3 py-2">
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center gap-3">
|
||||||
<button type="button" class="text-slate-600 cursor-grab text-sm" data-role="content-drag-handle" draggable="true" aria-label="Beitrag verschieben">
|
|
||||||
<i class="ri-drag-move-2-line"></i>
|
|
||||||
</button>
|
|
||||||
<button type="button" class="text-slate-600 px-1.5 py-1 text-sm rounded-xs hover:bg-stone-200" data-role="content-move-up" aria-label="Beitrag nach oben">
|
|
||||||
<i class="ri-arrow-up-line"></i>
|
|
||||||
</button>
|
|
||||||
<button type="button" class="text-slate-600 px-1.5 py-1 text-sm rounded-xs hover:bg-stone-200" data-role="content-move-down" aria-label="Beitrag nach unten">
|
|
||||||
<i class="ri-arrow-down-line"></i>
|
|
||||||
</button>
|
|
||||||
<multi-select-simple
|
<multi-select-simple
|
||||||
id="{{ $baseID }}-musenalm-type"
|
id="{{ $baseID }}-musenalm-type"
|
||||||
name="{{ $prefix }}musenalm_type[]"
|
name="{{ $prefix }}musenalm_type[]"
|
||||||
|
|||||||
Reference in New Issue
Block a user