From b6499bfa557630558c698f60fbacb3289460d6e0 Mon Sep 17 00:00:00 2001 From: MarekWo Date: Thu, 1 Jan 2026 19:08:15 +0100 Subject: [PATCH] test: Add floating navigation buttons to diagnose offcanvas issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added semi-transparent floating buttons under navbar to test if viewport corruption is caused by offcanvas menu or navigation itself. Changes: - Add floating-test-buttons div in index.html - Two buttons: DM and Contacts (using navigateTo()) - Sticky position under navbar - Semi-transparent background with backdrop blur - Centered layout with gap between buttons Test scenario: 1. Click floating buttons (bypass offcanvas menu) 2. Navigate to DM / Contact Management 3. Return to main page via Home button 4. Check if status bar is still visible If floating buttons work correctly: - Problem is in offcanvas menu cleanup - Can keep these buttons as permanent quick navigation If floating buttons also cause corruption: - Problem is deeper (viewport/layout issue) - Need different approach 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- app/static/css/style.css | 23 +++++++++++++++++++++++ app/templates/index.html | 10 ++++++++++ 2 files changed, 33 insertions(+) diff --git a/app/static/css/style.css b/app/static/css/style.css index e87f4b2..9091009 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -580,6 +580,29 @@ main { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); } +/* ============================================================================= + TEST: Floating Navigation Buttons + ============================================================================= */ + +.floating-test-buttons { + position: sticky; + top: 0; + z-index: 999; + background: rgba(255, 255, 255, 0.85); + backdrop-filter: blur(10px); + padding: 0.5rem; + display: flex; + gap: 0.5rem; + justify-content: center; + border-bottom: 1px solid rgba(0, 0, 0, 0.1); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.floating-test-buttons .btn { + min-width: 100px; + font-weight: 500; +} + /* ============================================================================= PWA Safe Area Handling ============================================================================= */ diff --git a/app/templates/index.html b/app/templates/index.html index ca0a0f0..44d35d0 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -44,6 +44,16 @@ {% endblock %} {% block content %} + +
+ + +
+