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" /> - - - - {{ $t('container.editComposeHelper') }} - +
+ + + + + {{ $t('container.editComposeHelper') }} + + +
@@ -120,6 +128,9 @@ interface DialogProps { createdBy: string; } +const loadHeight = () => { + return createdBy.value === '1Panel' ? '300px' : '200px'; +}; const acceptParams = (props: DialogProps): void => { composeVisible.value = true; path.value = props.path;