mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
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
6 changed files with 6 additions and 6 deletions
|
@ -20,10 +20,10 @@
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
<Col size={7}>
|
<Col size={7}>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
||||||
</Col>
|
</Col>
|
||||||
<Col {breakpoint} size={5}>
|
<Col {breakpoint} size={5}>
|
||||||
<EnumSelector bind:value {choices} />
|
<EnumSelector bind:value {choices} />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -32,7 +32,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
let modified: boolean;
|
let modified: boolean;
|
||||||
$: modified = !isEqual(value, defaultValue);
|
$: modified = !isEqual(value, defaultValue);
|
||||||
$: className = !modified ? "opacity-25" : "";
|
$: className = !modified ? "opacity-0" : "";
|
||||||
|
|
||||||
const isTouchDevice = getContext<boolean>(touchDeviceKey);
|
const isTouchDevice = getContext<boolean>(touchDeviceKey);
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
<Col size={7}>
|
<Col size={7}>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
||||||
</Col>
|
</Col>
|
||||||
<Col size={5}>
|
<Col size={5}>
|
||||||
<SpinBoxFloat bind:value {min} {max} />
|
<SpinBoxFloat bind:value {min} {max} />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
<Col size={7}>
|
<Col size={7}>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
||||||
</Col>
|
</Col>
|
||||||
<Col size={5}>
|
<Col size={5}>
|
||||||
<SpinBox bind:value {min} {max} />
|
<SpinBox bind:value {min} {max} />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
<Col size={7}>
|
<Col size={7}>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
||||||
</Col>
|
</Col>
|
||||||
<Col size={5}>
|
<Col size={5}>
|
||||||
<StepsInput bind:value />
|
<StepsInput bind:value />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
|
|
||||||
<Row>
|
<Row>
|
||||||
<Col>
|
<Col>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
{#if markdownTooltip}<TooltipLabel for={id} {markdownTooltip}
|
{#if markdownTooltip}<TooltipLabel for={id} {markdownTooltip}
|
||||||
><slot /></TooltipLabel
|
><slot /></TooltipLabel
|
||||||
>{:else}<Label for={id}><slot /></Label>{/if}
|
>{:else}<Label for={id}><slot /></Label>{/if}
|
||||||
</Col>
|
</Col>
|
||||||
<Col grow={false}>
|
<Col grow={false}>
|
||||||
<Switch {id} bind:value />
|
<Switch {id} bind:value />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
Loading…
Reference in a new issue