move revert button to the right

With a confirmation step now, accidental taps when scrolling shouldn't
be an issue, and it leaves more room for the text.
This commit is contained in:
Damien Elmes 2021-06-22 09:41:31 +10:00
parent cde63469dc
commit a7cf5cb5eb
5 changed files with 5 additions and 5 deletions

View file

@ -20,10 +20,10 @@
<Row>
<Col size={7}>
<RevertButton bind:value {defaultValue} />
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
</Col>
<Col {breakpoint} size={5}>
<EnumSelector bind:value {choices} />
<RevertButton bind:value {defaultValue} />
</Col>
</Row>

View file

@ -18,10 +18,10 @@
<Row>
<Col size={7}>
<RevertButton bind:value {defaultValue} />
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
</Col>
<Col size={5}>
<SpinBoxFloat bind:value {min} {max} />
<RevertButton bind:value {defaultValue} />
</Col>
</Row>

View file

@ -18,10 +18,10 @@
<Row>
<Col size={7}>
<RevertButton bind:value {defaultValue} />
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
</Col>
<Col size={5}>
<SpinBox bind:value {min} {max} />
<RevertButton bind:value {defaultValue} />
</Col>
</Row>

View file

@ -16,10 +16,10 @@
<Row>
<Col size={7}>
<RevertButton bind:value {defaultValue} />
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
</Col>
<Col size={5}>
<StepsInput bind:value />
<RevertButton bind:value {defaultValue} />
</Col>
</Row>

View file

@ -19,12 +19,12 @@
<Row>
<Col>
<RevertButton bind:value {defaultValue} />
{#if markdownTooltip}<TooltipLabel for={id} {markdownTooltip}
><slot /></TooltipLabel
>{:else}<Label for={id}><slot /></Label>{/if}
</Col>
<Col grow={false}>
<Switch {id} bind:value />
<RevertButton bind:value {defaultValue} />
</Col>
</Row>