Minor fixes for bindings v2

This commit is contained in:
Dean 2023-06-01 11:47:27 +01:00
parent a782a8b9b1
commit d08dd2d491
3 changed files with 12 additions and 5 deletions

View File

@ -54,6 +54,7 @@
<section
class:fillWidth
class="drawer"
class:headless
transition:slide|local
style={`width: ${width}; left: ${left};`}
>
@ -77,6 +78,10 @@
{/if}
<style>
.drawer.headless :global(.drawer-contents) {
height: calc(40vh + 75px);
}
.buttons {
display: flex;
gap: var(--spacing-m);

View File

@ -592,7 +592,6 @@ export const getEventContextBindings = (
actionId
) => {
let bindings = []
// Check if any context bindings are provided by the component for this
// setting
const component = findComponent(asset.props, componentId)
@ -608,6 +607,9 @@ export const getEventContextBindings = (
)}`,
category: component._instanceName,
icon: def.icon,
display: {
name: contextEntry.label,
},
})
})
}
@ -631,6 +633,9 @@ export const getEventContextBindings = (
runtimeBinding: `actions.${idx}.${contextValue.value}`,
category: "Actions",
icon: "JourneyAction",
display: {
name: contextValue.label,
},
})
})
}

View File

@ -380,9 +380,6 @@
white-space: nowrap;
overflow: hidden;
}
.binding-drawer :global(.drawer-contents) {
height: unset;
}
.main :global(textarea) {
min-height: 202px !important;
}
@ -426,7 +423,7 @@
.main-content {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 315px;
grid-template-rows: 380px;
}
.main-content.binding-panel {
grid-template-columns: 1fr 320px;