From fb7fd9d1f2c8ff4f08b7fdc83dffe94147d15842 Mon Sep 17 00:00:00 2001 From: TheFlow Date: Sun, 19 Oct 2025 18:30:16 +1300 Subject: [PATCH] fix(ui): use fixed width classes instead of w-full for diagram sizing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SUMMARY: Fixed diagram sizing issue by replacing w-full with fixed width classes. Diagram was taking up full screen due to w-full overriding max-width constraints. CHANGES: - Removed: w-full max-w-[96px] sm:max-w-[128px] lg:max-w-[160px] - Added: w-24 sm:w-32 lg:w-40 (fixed widths) SIZING: - Mobile: w-24 = 96px (6rem) - Tablet: sm:w-32 = 128px (8rem) - Desktop: lg:w-40 = 160px (10rem) This ensures the diagram is properly constrained to 25% of original size across all viewports without being overridden by w-full. Cache-busting: v=20251019165000 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude --- .claude/metrics/hooks-metrics.json | 18 ++++++++++++++++-- public/architecture.html | 6 +++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.claude/metrics/hooks-metrics.json b/.claude/metrics/hooks-metrics.json index 5e590d55..5596e328 100644 --- a/.claude/metrics/hooks-metrics.json +++ b/.claude/metrics/hooks-metrics.json @@ -4409,6 +4409,20 @@ "file": "/home/theflow/projects/tractatus/public/architecture.html", "result": "passed", "reason": null + }, + { + "hook": "validate-file-edit", + "timestamp": "2025-10-19T05:29:49.259Z", + "file": "/home/theflow/projects/tractatus/public/architecture.html", + "result": "passed", + "reason": null + }, + { + "hook": "validate-file-edit", + "timestamp": "2025-10-19T05:29:56.732Z", + "file": "/home/theflow/projects/tractatus/public/architecture.html", + "result": "passed", + "reason": null } ], "blocks": [ @@ -4648,9 +4662,9 @@ } ], "session_stats": { - "total_edit_hooks": 445, + "total_edit_hooks": 447, "total_edit_blocks": 34, - "last_updated": "2025-10-19T05:24:20.477Z", + "last_updated": "2025-10-19T05:29:56.732Z", "total_write_hooks": 185, "total_write_blocks": 5 } diff --git a/public/architecture.html b/public/architecture.html index d9dd31df..167c467d 100644 --- a/public/architecture.html +++ b/public/architecture.html @@ -339,10 +339,10 @@ data="/images/architecture-diagram-interactive.svg" type="image/svg+xml" id="interactive-svg-object" - class="w-full max-w-[96px] sm:max-w-[128px] lg:max-w-[160px] h-auto" + class="w-24 sm:w-32 lg:w-40 h-auto" aria-label="Interactive Tractatus Architecture Diagram"> - Tractatus Architecture Diagram + Tractatus Architecture Diagram @@ -521,7 +521,7 @@ - +