From 12766695c43201b8d3825776ae9c8216712e11e1 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Mon, 27 Oct 2025 11:18:25 +0100 Subject: [PATCH] feat: add dynamic viewport-based height for compose editor - Add Alpine.js reactive height calculation based on viewport size - Monaco editor now responds to window resize events - Fix Livewire component structure by moving style tag inside root div - Update CLAUDE.md to document critical single root element requirement - Set minimum editor height of 300px with responsive maximum - Use CSS custom properties to pass calculated height to components --- CLAUDE.md | 1 + .../components/forms/monaco-editor.blade.php | 2 +- .../project/service/edit-compose.blade.php | 28 +++++++++++++------ templates/service-templates-latest.json | 2 +- templates/service-templates.json | 2 +- 5 files changed, 23 insertions(+), 12 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 34149d28a..6434ef877 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -146,6 +146,7 @@ ### Livewire Component Structure - State management handled on the server - Use wire:model for two-way data binding - Dispatch events for component communication +- **CRITICAL**: Livewire component views **MUST** have exactly ONE root element. ALL content must be contained within this single root element. Placing ANY elements (` -