From 4af76a6b7ea38cbec04c72757d498680e5538ea5 Mon Sep 17 00:00:00 2001 From: HikeMap User Date: Thu, 1 Jan 2026 08:51:43 -0600 Subject: [PATCH] Redesign Edit panel as 60vh bottom sheet overlay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Similar design to admin panel but 60vh height for more tools - Green accent color (#4CAF50) to distinguish from admin - Smooth slide-up animation with backdrop blur - Close button returns to navigate mode - All edit tools and controls preserved in overlay - Properly closes other overlays when switching tabs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- index.html | 165 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 164 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 73e87ea..6f4e395 100644 --- a/index.html +++ b/index.html @@ -774,6 +774,69 @@ -webkit-overflow-scrolling: touch; } + /* Edit Panel Overlay - Similar to Admin */ + .edit-panel-overlay { + position: fixed; + bottom: 0; + left: 0; + right: 0; + height: 60vh; + background: rgba(30, 30, 30, 0.95); + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); + transform: translateY(100%); + transition: transform 0.3s ease; + z-index: 1001; + border-radius: 20px 20px 0 0; + box-shadow: 0 -4px 20px rgba(0,0,0,0.3); + display: flex; + flex-direction: column; + } + + .edit-panel-overlay.active { + transform: translateY(0); + } + + .edit-panel-header { + padding: 20px; + border-bottom: 1px solid #444; + display: flex; + justify-content: space-between; + align-items: center; + flex-shrink: 0; + } + + .edit-panel-header h2 { + color: #4CAF50; + margin: 0; + font-size: 20px; + } + + .edit-panel-close { + background: none; + border: none; + color: #aaa; + font-size: 28px; + cursor: pointer; + padding: 0; + width: 32px; + height: 32px; + display: flex; + align-items: center; + justify-content: center; + } + + .edit-panel-close:hover { + color: white; + } + + .edit-panel-content { + padding: 20px; + overflow-y: auto; + flex: 1; + -webkit-overflow-scrolling: touch; + } + /* Admin Panel Styles - Simple and Working */ .admin-setting-group { padding: 15px; @@ -3840,6 +3903,12 @@ [editTab, navTab, adminTab].forEach(tab => tab.classList.remove('active')); [editContent, navContent, adminContent].forEach(content => content.classList.remove('active')); + // Close any open overlays + const editOverlay = document.querySelector('.edit-panel-overlay'); + const adminOverlay = document.querySelector('.admin-panel-overlay'); + if (editOverlay) editOverlay.classList.remove('active'); + if (adminOverlay) adminOverlay.classList.remove('active'); + if (tabName === 'edit') { // Check authentication for edit mode if (!isAuthenticated) { @@ -3847,8 +3916,12 @@ return; } + // Show edit overlay instead of tab content editTab.classList.add('active'); - editContent.classList.add('active'); + const editOverlay = document.querySelector('.edit-panel-overlay'); + if (editOverlay) { + editOverlay.classList.add('active'); + } navMode = false; // Show geocache list toggle in edit mode @@ -5986,6 +6059,25 @@ document.getElementById('navTab').addEventListener('click', () => switchTab('navigate')); document.getElementById('adminTab').addEventListener('click', () => switchTab('admin')); + // Edit overlay close button + setTimeout(() => { + const editCloseBtn = document.getElementById('editCloseBtn'); + if (editCloseBtn) { + editCloseBtn.addEventListener('click', (e) => { + e.preventDefault(); + e.stopPropagation(); + const editOverlay = document.querySelector('.edit-panel-overlay'); + if (editOverlay) { + editOverlay.classList.remove('active'); + } + // Remove active class from edit tab + document.getElementById('editTab').classList.remove('active'); + // Switch to navigate tab + switchTab('navigate'); + }); + } + }, 100); + // Admin overlay close button - defer to ensure DOM element exists setTimeout(() => { const adminCloseBtn = document.getElementById('adminCloseBtn'); @@ -6421,6 +6513,77 @@ + +
+
+

✏️ Edit Tools

+ +
+
+
+
File
+ + + + +
+ +
+
Track Tools
+
+ + + + + + + +
+ + +
+ +
+
Merge / Simplify
+
+ + +
5 meters
+
+ + + +
+ +
+
+ + +
+
+ +
+
Tracks (0)
+
+ +
+
+
+