Browse Source

fix: 解决打开编辑文件页面确认按钮可能看不到的问题 (#1084)

Refs https://github.com/1Panel-dev/1Panel/issues/1042
pull/1085/head
zhengkunwang223 2 years ago committed by GitHub
parent
commit
03d338d6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      frontend/src/views/host/file-management/code-editor/index.vue

11
frontend/src/views/host/file-management/code-editor/index.vue

@ -6,6 +6,7 @@
destroy-on-close
width="70%"
@opened="onOpen"
:top="'5vh'"
>
<el-form :inline="true" :model="config">
<el-form-item :label="$t('file.theme')">
@ -24,8 +25,8 @@
</el-select>
</el-form-item>
</el-form>
<div class="coder-editor" v-loading="loading">
<div id="codeBox" style="height: 60vh"></div>
<div v-loading="loading">
<div id="codeBox" style="height: 55vh"></div>
</div>
<template #footer>
<span class="dialog-footer">
@ -214,8 +215,8 @@ onBeforeUnmount(() => {
defineExpose({ acceptParams });
</script>
<style lang="scss">
.coder-editor {
margin-top: 10px;
<style>
.dialog-top {
top: 0;
}
</style>

Loading…
Cancel
Save