Commit Graph

7 Commits

Author SHA1 Message Date
Adrian Cowan ab8fbbecca website: Add basic keyboard support for ranking items to improve accessibility 2023-01-01 16:40:36 +11:00
Adrian Cowan 64a7b9848a website: Restrict ranking items to vertical motion to avoid breaking the webpage layout.
When the items are drag-able outside the page boundary the viewport leaves the page boundary. This looks particularly unprofessionally on mobile. There is also another option to restrict to the page boundaries (restrictToWindowEdges) which might be better but it doesn't appear to work on mobile (firefox); the issue is that the items get stuck slightly off to the left edge of the viewport and can't be moved horizontally at all (even without restrictToVerticalAxis).
2023-01-01 16:40:29 +11:00
Adrian Cowan 6319f1ad17 website: Add drag handles to rank-able (drag-able) items to make it clear they can be dragged.
The formatting changes to the SortableItem also had the side-effect of removing the dot points.
2023-01-01 16:40:15 +11:00
croumegous a0b900559c chore: eslint plugins to sort import and remove unused import automatically 2022-12-31 18:22:06 +01:00
AbdBarho ece0227aec Use DnDKit for ranking tasks 2022-12-31 09:19:37 +01:00
AbdBarho 4f8c4e0457 Implement rank_assistant_replies in web 2022-12-29 21:13:25 +01:00
AbdBarho 66b89d4685 Implement rank_user_replies in web 2022-12-29 19:44:29 +01:00