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>
<Col>
<CheckBox bind:value
><slot />
{#if markdownTooltip}<HelpPopup
html={marked(markdownTooltip)}
/>{/if}</CheckBox
><span
><slot />
{#if markdownTooltip}<HelpPopup
html={marked(markdownTooltip)}
/>{/if}</span
></CheckBox
>
</Col>
<Col grow={false}>

View File

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

View File

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

View File

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

View File

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