diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Checklist.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Checklist.tsx index 86c1b003eb..2248ac83be 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Checklist.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Checklist.tsx @@ -86,8 +86,13 @@ const Checklist: React.FC = React.memo((props) => { onContextMenu={handleContext} ref={drag} > - {Icon && } - {props.text} +
+ {Icon && } + {props.text} +
+ {props.data?.fn && ( +
{props.data.fn}
+ )} {groupedOptions ? (
    diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Option.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Option.tsx index 8a48609f6e..0e34bab039 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Option.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Flow/components/Option.tsx @@ -29,6 +29,7 @@ const Option: React.FC = (props) => { e.preventDefault()}>
    {props.data.text}
    + {props.data?.val &&
    {props.data?.val}
    }
      {childNodes.map((child: any) => ( diff --git a/editor.planx.uk/src/pages/FlowEditor/floweditor.scss b/editor.planx.uk/src/pages/FlowEditor/floweditor.scss index 8f51ad279b..f91c0d4fbd 100644 --- a/editor.planx.uk/src/pages/FlowEditor/floweditor.scss +++ b/editor.planx.uk/src/pages/FlowEditor/floweditor.scss @@ -250,7 +250,7 @@ $fontMonospace: "Source Code Pro", monospace; flex-direction: column; padding: 0; min-width: 60px; - max-width: 200px; + max-width: fit-content; } .band { width: 100%; @@ -261,6 +261,51 @@ $fontMonospace: "Source Code Pro", monospace; align-self: center; margin: 0; padding: 6px 12px; + width: 100%; + border-bottom: $nodeBorderWidth solid $optionBorder; + } + .schema { + background-color: $hangerBackground; + font-family: $fontMonospace; + align-self: center; + margin: 0; + margin-bottom: -$nodeBorderWidth; + padding: 6px 12px; + width: 100%; + border-bottom: $nodeBorderWidth solid $optionBorder; + } +} + +.question { + > a { + border-color: $nodeBorder; + flex-direction: column; + padding: 0; + min-width: 60px; + max-width: 300px; + } + .question-icon-wrapper { + display: flex; + flex-direction: row; + padding: 6px; + width: 100%; + border-bottom: $nodeBorderWidth solid $nodeBorder; + } + .question-text { + align-self: center; + margin: 0; + padding: 6px 12px; + width: 100%; + } + .question-schema { + background-color: $hangerBackground; + font-family: $fontMonospace; + align-self: center; + margin: 0; + margin-bottom: -$nodeBorderWidth; + padding: 6px 12px; + width: 100%; + border-bottom: $nodeBorderWidth solid $nodeBorder; } }