diff --git a/frontend/src/views/container/compose/edit/index.vue b/frontend/src/views/container/compose/edit/index.vue
index a4b00af4a..bba6ed6a0 100644
--- a/frontend/src/views/container/compose/edit/index.vue
+++ b/frontend/src/views/container/compose/edit/index.vue
@@ -19,7 +19,7 @@
placeholder="#Define or paste the content of your docker-compose file here"
:indent-with-tab="true"
:tabSize="4"
- style="width: 100%; height: calc(100vh - 300px)"
+ :style="{ width: '100%', height: `calc(100vh - ${loadHeight()})` }"
:lineWrapping="true"
:matchBrackets="true"
theme="cobalt"
@@ -28,26 +28,34 @@
v-model="content"
/>
-