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,
|
TriggerStepID.ROW_DELETED,
|
||||||
]
|
]
|
||||||
|
|
||||||
let rowEvents = [
|
const rowEvents = [
|
||||||
AutomationEventType.ROW_DELETE,
|
AutomationEventType.ROW_DELETE,
|
||||||
AutomationEventType.ROW_SAVE,
|
AutomationEventType.ROW_SAVE,
|
||||||
AutomationEventType.ROW_UPDATE,
|
AutomationEventType.ROW_UPDATE,
|
||||||
|
|
|
@ -117,17 +117,15 @@
|
||||||
/>
|
/>
|
||||||
{:else if schema.type === "json"}
|
{:else if schema.type === "json"}
|
||||||
<span>
|
<span>
|
||||||
<div class="field-wrap">
|
<div class="field-wrap json-field">
|
||||||
<CodeEditor
|
<CodeEditor
|
||||||
value={fieldData}
|
value={fieldData}
|
||||||
on:change={e => {
|
on:change={e => {
|
||||||
if (e.detail?.value !== fieldData) {
|
onChange({
|
||||||
onChange({
|
row: {
|
||||||
row: {
|
[field]: e.detail,
|
||||||
[field]: e.detail,
|
},
|
||||||
},
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -265,6 +263,10 @@
|
||||||
padding: var(--spacing-s);
|
padding: var(--spacing-s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.field-wrap.json-field {
|
||||||
|
height: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
.field-wrap {
|
.field-wrap {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
border: 1px solid var(--spectrum-global-color-gray-400);
|
border: 1px solid var(--spectrum-global-color-gray-400);
|
||||||
|
|
Loading…
Reference in New Issue