Merge pull request #1248 from ankitects/revert-on-right
Move deck options revert button to right; hide when inactive
This commit is contained in:
commit
1c0e0853b0
@ -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>
|
||||
|
@ -32,7 +32,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
let modified: boolean;
|
||||
$: modified = !isEqual(value, defaultValue);
|
||||
$: className = !modified ? "opacity-25" : "";
|
||||
$: className = !modified ? "opacity-0" : "";
|
||||
|
||||
const isTouchDevice = getContext<boolean>(touchDeviceKey);
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user