fix: show live feedback while reordering
ci / docker (push) Successful in 3m27s

This commit is contained in:
2026-09-08 07:56:47 +08:00
parent 988d131d9b
commit fde37de0fc
4 changed files with 28 additions and 15 deletions
+3
View File
@@ -42,6 +42,9 @@ describe('task and habit row decoration', () => {
expect(mvpPanel).toContain("request('/habits/reorder'")
expect(css).toContain('.drag-handle{')
expect(css).toContain('.reordering{')
expect(css).toContain('var(--reorder-y,0px)')
expect(app).toContain("'--reorder-y': `${taskReorder?.id === node.task.id ? taskReorder.offsetY : 0}px`")
expect(mvpPanel.match(/'--reorder-y': `\$\{habitReorder\?\.id === h\.id \? habitReorder\.offsetY : 0\}px`/g)?.length).toBe(2)
})
it('supports pointer dragging for desktop task and subtask completion', () => {