Wrap label and HelpPopup into span

Avoids HelpPopup in a differnt column upon label wrapping
This commit is contained in:
Henrik Giesel 2021-06-05 01:47:40 +02:00
parent 21ab484f21
commit 11c5476ae3
5 changed files with 10 additions and 8 deletions

View File

@ -18,10 +18,12 @@
<Row> <Row>
<Col> <Col>
<CheckBox bind:value <CheckBox bind:value
><slot /> ><span
{#if markdownTooltip}<HelpPopup ><slot />
html={marked(markdownTooltip)} {#if markdownTooltip}<HelpPopup
/>{/if}</CheckBox html={marked(markdownTooltip)}
/>{/if}</span
></CheckBox
> >
</Col> </Col>
<Col grow={false}> <Col grow={false}>

View File

@ -21,7 +21,7 @@
<Row> <Row>
<Col size={7}> <Col size={7}>
<slot /><HelpPopup html={marked(markdownTooltip)} /> <span><slot /><HelpPopup html={marked(markdownTooltip)} /></span>
</Col> </Col>
<Col {breakpoint} size={5}> <Col {breakpoint} size={5}>
<EnumSelector bind:value {choices} /> <EnumSelector bind:value {choices} />

View File

@ -19,7 +19,7 @@
<Row> <Row>
<Col size={7}> <Col size={7}>
<slot /><HelpPopup html={marked(markdownTooltip)} /> <span><slot /><HelpPopup html={marked(markdownTooltip)} /></span>
</Col> </Col>
<Col size={5}> <Col size={5}>
<SpinBoxFloat bind:value {min} {max} /> <SpinBoxFloat bind:value {min} {max} />

View File

@ -19,7 +19,7 @@
<Row> <Row>
<Col size={7}> <Col size={7}>
<slot /><HelpPopup html={marked(markdownTooltip)} /> <span><slot /><HelpPopup html={marked(markdownTooltip)} /></span>
</Col> </Col>
<Col size={5}> <Col size={5}>
<SpinBox bind:value {min} {max} /> <SpinBox bind:value {min} {max} />

View File

@ -17,7 +17,7 @@
<Row> <Row>
<Col size={7}> <Col size={7}>
<slot /><HelpPopup html={marked(markdownTooltip)} /> <span><slot /><HelpPopup html={marked(markdownTooltip)} /></span>
</Col> </Col>
<Col size={5}> <Col size={5}>
<StepsInput bind:value /> <StepsInput bind:value />