drag for mobile - handle sizeable

This commit is contained in:
2026-07-01 10:30:07 -03:00
parent 4e48e33b26
commit 924e287aee
7 changed files with 46 additions and 4 deletions

View File

@@ -24,3 +24,17 @@
cursor: grabbing !important;
user-select: none !important;
}
/*
* Enlarge the mobile card drag handle so it is a usable touch target.
* Kanboard reveals the .task-board-sort-handle (a FontAwesome fa-arrows-alt glyph) only
* on mobile (isMobile.any) and restricts card dragging to it; by default the glyph is
* tiny and hard to grab with a finger. FontAwesome icons are sized by font-size, so this
* is a pure font-size bump; it is inert on desktop where the handle stays display:none.
* Size comes from the --td-handle-size variable (Settings -> Tweak Drag), injected in the
* page head; falls back to 20px.
*/
.task-board-sort-handle,
.task-board-sort-handle i {
font-size: var(--td-handle-size, 20px);
}