hijiriworld / intuitive-custom-post-order

WordPress Plugin: Intuitive Custom Post Order
68 stars 34 forks source link

Responsive drag icon added #31

Closed AbeCole closed 1 year ago

AbeCole commented 5 years ago

This aims to fix an issue where you can't click the other WordPress actions for a table row (i.e. View, Edit, Quick Edit, Bin) on mobile because the browser tries to bring a 'drag' of a sortable element. Instead we add an icon that can be dragged instead of the whole row.

This alters the JavaScript to insert and use a 'drag icon' button with SVG into each of the targeted sortable tables. It also modifies the CSS to show the drag icon on resolutions less than 782px wide (inline with the rest of the WordPress CSS), and on larger resolutions only show the drag icon on hover of a particular table row.