mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix(editor): Fix modal overflow when AI is enabled in code node (#10887)
This commit is contained in:
parent
8ac661ee98
commit
f9f303f562
|
@ -376,15 +376,17 @@ function onAiLoadEnd() {
|
||||||
v-model="activeTab"
|
v-model="activeTab"
|
||||||
type="card"
|
type="card"
|
||||||
:before-leave="onBeforeTabLeave"
|
:before-leave="onBeforeTabLeave"
|
||||||
|
:class="$style.tabs"
|
||||||
>
|
>
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
:label="$locale.baseText('codeNodeEditor.tabs.code')"
|
:label="$locale.baseText('codeNodeEditor.tabs.code')"
|
||||||
name="code"
|
name="code"
|
||||||
data-test-id="code-node-tab-code"
|
data-test-id="code-node-tab-code"
|
||||||
|
:class="$style.fillHeight"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
ref="codeNodeEditorRef"
|
ref="codeNodeEditorRef"
|
||||||
:class="['ph-no-capture', 'code-editor-tabs', $style.editorInput]"
|
:class="['ph-no-capture', 'code-editor-tabs', $style.editorInput, $style.fillHeight]"
|
||||||
/>
|
/>
|
||||||
<slot name="suffix" />
|
<slot name="suffix" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
@ -439,6 +441,12 @@ function onAiLoadEnd() {
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="scss" module>
|
<style lang="scss" module>
|
||||||
|
.tabs {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
.code-node-editor-container {
|
.code-node-editor-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue