From 6351c038b50bdb9182d8bb7a39ab0f150aeb85f2 Mon Sep 17 00:00:00 2001 From: estel <690930@qq.com> Date: Fri, 22 Aug 2025 14:09:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=E6=8B=96=E6=8B=BD=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .kiro/specs/workflow-drag-drop-fix/tasks.md | 27 ++++ app/components/flow-nodes/WorkflowEditor.vue | 137 ++++++++++++++----- 2 files changed, 126 insertions(+), 38 deletions(-) diff --git a/.kiro/specs/workflow-drag-drop-fix/tasks.md b/.kiro/specs/workflow-drag-drop-fix/tasks.md index d657239..3c90c46 100644 --- a/.kiro/specs/workflow-drag-drop-fix/tasks.md +++ b/.kiro/specs/workflow-drag-drop-fix/tasks.md @@ -48,3 +48,30 @@ - Maintain proper layout and responsive behavior - Fix overflow handling for both panels - _Requirements: 4.1, 4.2_ + +- [x] 8. Fix drag and drop sorting functionality + - Configure vuedraggable with proper options for smooth sorting + - Add force-fallback option to ensure consistent behavior + - Improve drag handle visibility and interaction + - Fix drag event handling for proper reordering + - _Requirements: 1.2, 1.3, 2.2_ + +- [x] 9. Remove left panel collapse functionality + - Remove collapse/expand button and related functionality + - Simplify left panel layout to fixed width + - Clean up unused state variables and imports + - _Requirements: 4.1_ + +- [x] 10. Implement desktop application UX + - Disable text selection throughout the application + - Prevent web-like drag selection behavior + - Maintain text selection only for input fields + - Add proper cursor states for drag operations + - _Requirements: 4.1, 4.2, 4.3_ + +- [x] 11. Fix button interaction conflicts with drag handle + - Separate drag handle area from button interaction area + - Ensure delete and edit buttons are clickable and not blocked by drag area + - Add proper z-index and pointer-events handling + - Improve visual feedback for buttons and drag handle + - _Requirements: 1.3, 2.2, 4.3_ diff --git a/app/components/flow-nodes/WorkflowEditor.vue b/app/components/flow-nodes/WorkflowEditor.vue index bce628e..9637e8e 100644 --- a/app/components/flow-nodes/WorkflowEditor.vue +++ b/app/components/flow-nodes/WorkflowEditor.vue @@ -1,5 +1,5 @@