This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-431efe4a-6dab-48fc-9f04-93c9a05d9f46 XWIKI-25316 Open

The grab cursor only covers the column name in the Live Data table headers, while the whole header can be dragged

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-145e1d00-55f3-4912-84c9-5f96edbb8074 Charpentier Lucas created this issue on 16/Oct/26 14:12
 
Summary: The grab cursor only covers the column name in the Live Data table headers, while the whole header can be dragged
Issue Type: cid:jira-generated-image-avatar-431efe4a-6dab-48fc-9f04-93c9a05d9f46 Improvement
Affects Versions: 17.10.14
Assignee: Unassigned
Components: Live Data
Created: 16/Oct/26 14:12
Priority: cid:jira-generated-image-static-major-f8568854-5cb4-447d-9efb-e1af8a2fff1a Major
Reporter: Charpentier Lucas
Description:

In a Live Data table, a column can be reordered by dragging its header, but the grab cursor only shows on a small part of that header.

The drag starts from anywhere in the header name area, which spans the full width of the column, while the grab cursor is only set on the column name button, which is as wide as the name and the sort icon. Over the rest of the header, the cursor stays the default arrow even though a drag starts from there, so nothing tells the user that this part of the header can be dragged.

Steps to reproduce

  1. Open a page holding a Live Data table, for instance the "Children" tab of a page with children.
  2. Hover the header of a wide column, first over its name, then over the empty space to the right of the name.
  3. Drag the column header from that empty space.

Expected: the grab cursor shows over the whole area a drag can start from.
Actual: it only shows over the column name, yet the drag works from the empty space too.

Cause

LayoutTableHeaderNames.vue sets handle=".column-name" on the draggable component, so the whole .column-name block accepts the drag. The cursor: grab rule comes from XWikiDraggableItem.vue and targets .draggable-item .handle, which in the table header is the inner <button class="handle"> only.

Reported by Manuel Leduc in the forum discussion of XWIKI-24755: https://forum.xwiki.org/t/proposal-move-up-move-down-buttons-in-the-class-editor/18809/2