tractatus/public/js/components
TheFlow 0e63480261 fix(interactive): fix diagram sizing (75% reduction) and improve SVG detection
SUMMARY:
Fixed diagram to be 75% smaller in surface area (50% linear reduction) and
improved SVG detection logic to properly initialize click handlers.

CHANGES:

1. Diagram Sizing (architecture.html):
   - Changed from w-24/w-32/w-40 (90% reduction) to w-48/w-56/w-64 (75% reduction)
   - Mobile: w-48 = 192px (50% of 384px original)
   - Tablet: sm:w-56 = 224px (50% of 448px original)
   - Desktop: lg:w-64 = 256px (50% of 512px original)
   - Surface area now 25% of original (75% reduction as requested)

2. SVG Detection Logic (interactive-diagram.js):
   - Split null check from tagName validation
   - Added clearer console logging for debugging
   - tagName check now handles undefined gracefully
   - Should properly detect SVG and attach click handlers

PREVIOUS ISSUE:
- Diagram was w-24/w-32/w-40 (6.25% surface area = 93.75% reduction)
- SVG detection check was failing, preventing click handlers from attaching
- Combined null && tagName check was too strict

FIXES:
✓ Diagram is now 75% smaller by surface area (not 90%)
✓ SVG detection should properly initialize
✓ Click handlers should attach to service nodes

Cache-busting: v=20251019170000

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 18:35:13 +13:00
..
code-copy-button.js feat(phase3): add code snippet copy buttons and collapsible TOC 2025-10-19 15:27:33 +13:00
coming-soon-overlay.js fix(csp): clean all public-facing pages - 75 violations fixed (66%) 2025-10-19 13:17:50 +13:00
currency-selector.js feat: add multi-currency support and privacy policy to Koha system 2025-10-08 15:17:23 +13:00
document-cards.js feat: comprehensive accessibility improvements (WCAG 2.1 AA) 2025-10-12 07:08:40 +13:00
document-viewer.js style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
footer.js feat(i18n): add footer and privacy page translations (en/de/fr) 2025-10-19 14:44:14 +13:00
interactive-diagram.js fix(interactive): fix diagram sizing (75% reduction) and improve SVG detection 2025-10-19 18:35:13 +13:00
language-selector.js refactor(i18n): simplify language selector to icons-only for all devices 2025-10-17 09:07:42 +13:00
navbar.js style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
toc.js feat(phase3): add code snippet copy buttons and collapsible TOC 2025-10-19 15:27:33 +13:00