mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-05 13:41:36 +02:00
The print queue couldn't be reordered on a phone. In portrait the drag grip and selection checkbox are hidden below the sm breakpoint, so there was no reorder affordance at all; in landscape the grip shows but it carried touch-action: manipulation while the only dnd-kit sensor is a PointerSensor with an 8px distance, so touch gestures scrolled instead of starting a drag. Reordering was effectively mouse-only. Add tap-friendly up/down arrow buttons to pending rows on mobile (shown below sm, where the drag handle is hidden). They move a row one step among its siblings -- standalone items, whole batches, and items within a batch, in both the flat and per-printer layouts -- and persist through the same POST /queue/reorder path as drag. Arrows appear only in the manual "position" sort (shortest-job-first off) where position has meaning, are gated on queue:reorder, and the first row's up / last row's down render disabled. Also switch the desktop drag handle's touch-action to none so mouse-style drag works on touch (landscape phones, tablets). Reuses the existing queue.moveUp / queue.moveDown translations.