Add min height for JSON picker in row steps. Fix for JSON onchange

This commit is contained in:
Dean 2024-06-27 12:49:11 +01:00
parent 2243314314
commit 933e17e945
2 changed files with 11 additions and 9 deletions

View File

@ -74,7 +74,7 @@
TriggerStepID.ROW_DELETED,
]
let rowEvents = [
const rowEvents = [
AutomationEventType.ROW_DELETE,
AutomationEventType.ROW_SAVE,
AutomationEventType.ROW_UPDATE,

View File

@ -117,17 +117,15 @@
/>
{:else if schema.type === "json"}
<span>
<div class="field-wrap">
<div class="field-wrap json-field">
<CodeEditor
value={fieldData}
on:change={e => {
if (e.detail?.value !== fieldData) {
onChange({
row: {
[field]: e.detail,
},
})
}
onChange({
row: {
[field]: e.detail,
},
})
}}
/>
</div>
@ -265,6 +263,10 @@
padding: var(--spacing-s);
}
.field-wrap.json-field {
height: 80px;
}
.field-wrap {
box-sizing: border-box;
border: 1px solid var(--spectrum-global-color-gray-400);