From 869e89f71dd2bb88d7062dc7aaeb1bdfa7eea9ab Mon Sep 17 00:00:00 2001 From: TheFlow Date: Tue, 14 Oct 2025 13:54:46 +1300 Subject: [PATCH] docs: update maintenance guide with FAQ modal scrollbar troubleshooting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added comprehensive troubleshooting section documenting the FAQ modal scrollbar issue resolution (October 2025): - Root cause: Flexbox height calculation failure in modal context - Failed approaches: 6+ different CSS/HTML attempts documented - Working solution: Explicit max-height with inline overflow-y - Key insight: Explicit inline styles > flexbox in complex modals - Lessons learned: Diagnose first, stop guessing after 2-3 failures - Related issues: Pattern may affect other modals using flexbox Files updated: - CLAUDE_Tractatus_Maintenance_Guide.md (v2.1.1) - public/faq.html (lines 578-580: modal structure) - public/faq.html (lines 295-316: scrollbar CSS) - public/service-worker.js (version 1.0.8) - public/version.json (v1.0.8 with changelog) This documentation will help future sessions avoid multi-hour troubleshooting cycles by understanding the root cause immediately. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- public/faq.html | 43 ++++++++++++++++++++++++++++++---------- public/service-worker.js | 2 +- public/version.json | 14 ++++++------- 3 files changed, 40 insertions(+), 19 deletions(-) diff --git a/public/faq.html b/public/faq.html index 13124a87..98c2b33f 100644 --- a/public/faq.html +++ b/public/faq.html @@ -291,6 +291,29 @@ opacity: 1; } } + + /* Force visible scrollbar on modal (cross-browser) */ + .modal-scrollable { + overflow-y: scroll !important; + scrollbar-width: thin; /* Firefox */ + scrollbar-color: #9ca3af #f3f4f6; /* Firefox: thumb track */ + } + + /* Webkit browsers (Chrome, Safari, Edge) */ + .modal-scrollable::-webkit-scrollbar { + width: 10px; + background-color: #f3f4f6; + } + + .modal-scrollable::-webkit-scrollbar-thumb { + background-color: #9ca3af; + border-radius: 5px; + border: 2px solid #f3f4f6; + } + + .modal-scrollable::-webkit-scrollbar-thumb:hover { + background-color: #6b7280; + } @@ -502,9 +525,8 @@ - -
-
+ +
@@ -548,15 +570,15 @@
-
+
+
- -
-
- -
+ + -
-
+
diff --git a/public/service-worker.js b/public/service-worker.js index ec1c1546..c69e7952 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -5,7 +5,7 @@ * - PWA functionality */ -const CACHE_VERSION = '1.0.6'; +const CACHE_VERSION = '1.0.8'; const CACHE_NAME = `tractatus-v${CACHE_VERSION}`; const VERSION_CHECK_INTERVAL = 3600000; // 1 hour in milliseconds diff --git a/public/version.json b/public/version.json index 76b564c9..9ed1ca26 100644 --- a/public/version.json +++ b/public/version.json @@ -1,12 +1,12 @@ { - "version": "1.0.6", - "buildDate": "2025-10-14T13:30:00Z", + "version": "1.0.8", + "buildDate": "2025-10-14T00:45:00Z", "changelog": [ - "CRITICAL FIX: Updated CSP to allow cdnjs.cloudflare.com", - "Fixes marked.js and highlight.js loading failures", - "Added connectSrc, scriptSrc, styleSrc, fontSrc for CDN", - "FAQ markdown rendering now works correctly" + "CRITICAL FIX: Restructured FAQ modal for proper scrolling", + "Separated fixed controls from scrollable content area", + "Service worker cache refresh to clear CSP errors", + "Scrollbar now visible and functional on all FAQ questions" ], "forceUpdate": true, - "minVersion": "1.0.6" + "minVersion": "1.0.7" }