Add min height for JSON picker in row steps. Fix for JSON onchange
This commit is contained in:
parent
2243314314
commit
933e17e945
|
@ -74,7 +74,7 @@
|
|||
TriggerStepID.ROW_DELETED,
|
||||
]
|
||||
|
||||
let rowEvents = [
|
||||
const rowEvents = [
|
||||
AutomationEventType.ROW_DELETE,
|
||||
AutomationEventType.ROW_SAVE,
|
||||
AutomationEventType.ROW_UPDATE,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue