Skip to content

Commit 116ceef

Browse files
fix: python dialog fullscreen
1 parent 1761620 commit 116ceef

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ui/src/components/dynamics-form/items/JsonInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
:style="codemirrorStyle"
2828
:tab-size="4"
2929
:autofocus="true"
30-
style="height: 300px !important; border: 1px solid #bbbfc4; border-radius: 4px"
30+
style="height: calc(100vh - 160px) !important; border: 1px solid #bbbfc4; border-radius: 4px"
3131
/>
3232
<template #footer>
3333
<div class="dialog-footer mt-24">

ui/src/views/function-lib/component/FunctionFormDrawer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@
138138
</template>
139139

140140
<!-- Codemirror 弹出层 -->
141-
<el-dialog v-model="dialogVisible" title="Python 代码" append-to-body>
141+
<el-dialog v-model="dialogVisible" title="Python 代码" append-to-body fullscreen>
142142
<CodemirrorEditor
143143
v-model="cloneContent"
144-
style="height: 300px !important; border: 1px solid #bbbfc4; border-radius: 4px"
144+
style="height: calc(100vh - 160px) !important; border: 1px solid #bbbfc4; border-radius: 4px"
145145
/>
146146
<template #footer>
147147
<div class="dialog-footer mt-24">

ui/src/workflow/nodes/function-node/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@
100100
</el-form>
101101
<FieldFormDialog ref="FieldFormDialogRef" @refresh="refreshFieldList" />
102102
<!-- Codemirror 弹出层 -->
103-
<el-dialog v-model="dialogVisible" title="Python 代码" append-to-body>
103+
<el-dialog v-model="dialogVisible" title="Python 代码" append-to-body fullscreen>
104104
<CodemirrorEditor
105105
v-model="cloneContent"
106-
style="height: 300px !important; border: 1px solid #bbbfc4; border-radius: 4px"
106+
style="height: calc(100vh - 160px) !important; border: 1px solid #bbbfc4; border-radius: 4px"
107107
/>
108108
<template #footer>
109109
<div class="dialog-footer mt-24">

0 commit comments

Comments
 (0)