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 (` -
+}" x-init="calculateEditorHeight(); window.addEventListener('resize', () => calculateEditorHeight())">
Volume names are updated upon save. The service UUID will be added as a prefix to all volumes, to prevent name collision.
To see the actual volume names, check the Deployable Compose file, or go to Storage menu.
-
+
- +
@@ -22,7 +32,7 @@
- +
diff --git a/templates/service-templates-latest.json b/templates/service-templates-latest.json index 1629cc152..859981ac0 100644 --- a/templates/service-templates-latest.json +++ b/templates/service-templates-latest.json @@ -4527,7 +4527,7 @@ "web", "admin" ], - "category": "vps", + "category": "vpn", "logo": "svgs/wireguard.svg", "minversion": "0.0.0", "port": "8000" diff --git a/templates/service-templates.json b/templates/service-templates.json index 13a6d7382..468bf7543 100644 --- a/templates/service-templates.json +++ b/templates/service-templates.json @@ -4527,7 +4527,7 @@ "web", "admin" ], - "category": "vps", + "category": "vpn", "logo": "svgs/wireguard.svg", "minversion": "0.0.0", "port": "8000"