From 2d9175ec05a22f80f028818b9ef10d48f6cfa3c1 Mon Sep 17 00:00:00 2001 From: tegwick Date: Mon, 10 Nov 2025 20:10:11 +0100 Subject: [PATCH] feat: enhance DocumentNavigator with dragging and compact header design MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add draggable functionality when expanded - click and drag the ☰ icon to reposition - Implement automatic position reset to original location when collapsed - Create compact header design with 40px height matching collapsed icon state - Remove duplicate icons and filter out navigation-related headings from content - Add visual feedback with cursor changes (grab/grabbing) during drag operations - Include viewport boundary constraints to prevent dragging outside browser window - Optimize header spacing and typography for clean, professional appearance - Maintain consistent UX across both viewing and edit modes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- markitect/clean_document_manager.py | 254 +++++++++++++++++++++++++++- 1 file changed, 247 insertions(+), 7 deletions(-) diff --git a/markitect/clean_document_manager.py b/markitect/clean_document_manager.py index b3270667..d9b71ad9 100644 --- a/markitect/clean_document_manager.py +++ b/markitect/clean_document_manager.py @@ -1182,6 +1182,9 @@ class CleanDocumentManager: const documentNavigator = {{ navElement: null, isExpanded: false, + isDragging: false, + dragOffset: {{ x: 0, y: 0 }}, + originalPosition: {{ top: '80px', left: '20px' }}, createControl: function() {{ console.log("📋 Creating DocumentNavigator control for view mode..."); @@ -1192,6 +1195,7 @@ class CleanDocumentManager: