[PR #2286] [MERGED] fix(tasks): show drag handle icon on mobile devices #5577

Closed
opened 2026-04-16 13:42:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2286
Author: @kolaente
Created: 2/24/2026
Status: Merged
Merged: 2/24/2026
Merged by: @kolaente

Base: mainHead: fix-mobile-drag-handle


📝 Commits (9)

  • fef9eed fix(tasks): show drag handle icon on mobile devices
  • dc7200c fix(tasks): make drag handle the actual drag target on touch devices
  • 51d4eef fix(kanban): show drag handle icon on mobile devices
  • ade8d4f Revert "fix(kanban): show drag handle icon on mobile devices"
  • a38ed2d fix(kanban): enable long-press drag on mobile/touch devices
  • f773a77 fix(kanban): use touch-action: none for mobile drag
  • 3a22546 fix(kanban): add invisible touch drag overlay on mobile
  • 5dd874e fix(kanban): prevent text selection on cards on mobile
  • 121cc4a fix(kanban): preserve tap-to-open and scroll on mobile

📊 Changes

2 files changed (+84 additions, -3 deletions)

View changed files

📝 frontend/src/components/project/views/ProjectKanban.vue (+55 -0)
📝 frontend/src/components/project/views/ProjectList.vue (+29 -3)

📄 Description

Summary

  • Adds a grip-lines icon to task rows in the list view, visible only on touch/mobile devices
  • Uses @media (hover: hover) and (pointer: fine) to hide the handle on desktop
  • The whole row remains draggable on all devices — the icon is purely a visual affordance

Resolves #2228

Test plan

  • On a mobile device or using Chrome DevTools device emulation, verify the grip-lines icon appears to the left of each task
  • On desktop with a mouse, verify the icon is hidden
  • Verify drag-and-drop still works on both mobile and desktop
  • Verify the handle only appears when the user has write permissions (i.e. canDragTasks is true)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2286 **Author:** [@kolaente](https://github.com/kolaente) **Created:** 2/24/2026 **Status:** ✅ Merged **Merged:** 2/24/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `fix-mobile-drag-handle` --- ### 📝 Commits (9) - [`fef9eed`](https://github.com/go-vikunja/vikunja/commit/fef9eedbc440a0b56b2abdc37e84f1b76ae15000) fix(tasks): show drag handle icon on mobile devices - [`dc7200c`](https://github.com/go-vikunja/vikunja/commit/dc7200cad9acc1f9437af19d8ea7bc5ce8e19ed2) fix(tasks): make drag handle the actual drag target on touch devices - [`51d4eef`](https://github.com/go-vikunja/vikunja/commit/51d4eefd5eca46a0390a26e75e6438c0722f5f32) fix(kanban): show drag handle icon on mobile devices - [`ade8d4f`](https://github.com/go-vikunja/vikunja/commit/ade8d4fd3aeb09f2c72af17e9f87702695c2e830) Revert "fix(kanban): show drag handle icon on mobile devices" - [`a38ed2d`](https://github.com/go-vikunja/vikunja/commit/a38ed2da07517fd3ccd7a9bcfafc5eb744e6441f) fix(kanban): enable long-press drag on mobile/touch devices - [`f773a77`](https://github.com/go-vikunja/vikunja/commit/f773a773a892617ec4d1fdf2f1972c9b295dfbe4) fix(kanban): use touch-action: none for mobile drag - [`3a22546`](https://github.com/go-vikunja/vikunja/commit/3a22546a3689ad932bfbf09372a28b83bc36a559) fix(kanban): add invisible touch drag overlay on mobile - [`5dd874e`](https://github.com/go-vikunja/vikunja/commit/5dd874ed54eb6b81dd7f42b21e89e0fddc6033da) fix(kanban): prevent text selection on cards on mobile - [`121cc4a`](https://github.com/go-vikunja/vikunja/commit/121cc4a74e1e596541d10492b676205b7eb8b691) fix(kanban): preserve tap-to-open and scroll on mobile ### 📊 Changes **2 files changed** (+84 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/project/views/ProjectKanban.vue` (+55 -0) 📝 `frontend/src/components/project/views/ProjectList.vue` (+29 -3) </details> ### 📄 Description ## Summary - Adds a `grip-lines` icon to task rows in the list view, visible only on touch/mobile devices - Uses `@media (hover: hover) and (pointer: fine)` to hide the handle on desktop - The whole row remains draggable on all devices — the icon is purely a visual affordance Resolves #2228 ## Test plan - [x] On a mobile device or using Chrome DevTools device emulation, verify the grip-lines icon appears to the left of each task - [x] On desktop with a mouse, verify the icon is hidden - [x] Verify drag-and-drop still works on both mobile and desktop - [x] Verify the handle only appears when the user has write permissions (i.e. `canDragTasks` is true) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:42:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5577