fix(ui): use fixed width classes instead of w-full for diagram sizing
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 <noreply@anthropic.com>
This commit is contained in:
parent
3fbccf6d2f
commit
fb7fd9d1f2
2 changed files with 19 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
<!-- Fallback for browsers that don't support object tag -->
|
||||
<img src="/images/architecture-diagram-interactive.svg" alt="Tractatus Architecture Diagram" class="w-full max-w-[96px] sm:max-w-[128px] lg:max-w-[160px]" />
|
||||
<img src="/images/architecture-diagram-interactive.svg" alt="Tractatus Architecture Diagram" class="w-24 sm:w-32 lg:w-40" />
|
||||
</object>
|
||||
</div>
|
||||
|
||||
|
|
@ -521,7 +521,7 @@
|
|||
<script src="/js/scroll-animations.js"></script>
|
||||
|
||||
<!-- Interactive Architecture Diagram (Phase 3) -->
|
||||
<script src="/js/components/interactive-diagram.js?v=20251019164500"></script>
|
||||
<script src="/js/components/interactive-diagram.js?v=20251019165000"></script>
|
||||
|
||||
<!-- Footer Component -->
|
||||
<script src="/js/components/footer.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue