Minor fixes for bindings v2
This commit is contained in:
parent
a782a8b9b1
commit
d08dd2d491
|
@ -54,6 +54,7 @@
|
||||||
<section
|
<section
|
||||||
class:fillWidth
|
class:fillWidth
|
||||||
class="drawer"
|
class="drawer"
|
||||||
|
class:headless
|
||||||
transition:slide|local
|
transition:slide|local
|
||||||
style={`width: ${width}; left: ${left};`}
|
style={`width: ${width}; left: ${left};`}
|
||||||
>
|
>
|
||||||
|
@ -77,6 +78,10 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.drawer.headless :global(.drawer-contents) {
|
||||||
|
height: calc(40vh + 75px);
|
||||||
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--spacing-m);
|
gap: var(--spacing-m);
|
||||||
|
|
|
@ -592,7 +592,6 @@ export const getEventContextBindings = (
|
||||||
actionId
|
actionId
|
||||||
) => {
|
) => {
|
||||||
let bindings = []
|
let bindings = []
|
||||||
|
|
||||||
// Check if any context bindings are provided by the component for this
|
// Check if any context bindings are provided by the component for this
|
||||||
// setting
|
// setting
|
||||||
const component = findComponent(asset.props, componentId)
|
const component = findComponent(asset.props, componentId)
|
||||||
|
@ -608,6 +607,9 @@ export const getEventContextBindings = (
|
||||||
)}`,
|
)}`,
|
||||||
category: component._instanceName,
|
category: component._instanceName,
|
||||||
icon: def.icon,
|
icon: def.icon,
|
||||||
|
display: {
|
||||||
|
name: contextEntry.label,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -631,6 +633,9 @@ export const getEventContextBindings = (
|
||||||
runtimeBinding: `actions.${idx}.${contextValue.value}`,
|
runtimeBinding: `actions.${idx}.${contextValue.value}`,
|
||||||
category: "Actions",
|
category: "Actions",
|
||||||
icon: "JourneyAction",
|
icon: "JourneyAction",
|
||||||
|
display: {
|
||||||
|
name: contextValue.label,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -380,9 +380,6 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.binding-drawer :global(.drawer-contents) {
|
|
||||||
height: unset;
|
|
||||||
}
|
|
||||||
.main :global(textarea) {
|
.main :global(textarea) {
|
||||||
min-height: 202px !important;
|
min-height: 202px !important;
|
||||||
}
|
}
|
||||||
|
@ -426,7 +423,7 @@
|
||||||
.main-content {
|
.main-content {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
grid-template-rows: 315px;
|
grid-template-rows: 380px;
|
||||||
}
|
}
|
||||||
.main-content.binding-panel {
|
.main-content.binding-panel {
|
||||||
grid-template-columns: 1fr 320px;
|
grid-template-columns: 1fr 320px;
|
||||||
|
|
Loading…
Reference in New Issue