Reverse RevertButton being on the right side
This commit is contained in:
parent
3227346f53
commit
97692e4c28
@ -5,6 +5,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount, createEventDispatcher } from "svelte";
|
import { onMount, createEventDispatcher } from "svelte";
|
||||||
|
|
||||||
|
let className = "";
|
||||||
|
export { className as class };
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
let spanRef: HTMLSpanElement;
|
let spanRef: HTMLSpanElement;
|
||||||
@ -14,7 +17,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<span bind:this={spanRef} class="badge" on:click>
|
<span bind:this={spanRef} class={`badge ${className}`} on:click>
|
||||||
<slot />
|
<slot />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
||||||
</Col>
|
</Col>
|
||||||
<Col {breakpoint} size={5}>
|
<Col {breakpoint} size={5}>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
<EnumSelector bind:value {choices} />
|
<EnumSelector bind:value {choices} />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -36,8 +36,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
|
|
||||||
<span class:invisible={!modified}>
|
<span class:invisible={!modified}>
|
||||||
<WithTooltip tooltip={tr.deckConfigRevertButtonTooltip()} let:createTooltip>
|
<WithTooltip tooltip={tr.deckConfigRevertButtonTooltip()} let:createTooltip>
|
||||||
<Badge on:mount={(event) => createTooltip(event.detail.span)} on:click={revert}
|
<Badge
|
||||||
>{@html revertIcon}</Badge
|
class="px-1"
|
||||||
|
on:mount={(event) => createTooltip(event.detail.span)}
|
||||||
|
on:click={revert}>{@html revertIcon}</Badge
|
||||||
>
|
>
|
||||||
</WithTooltip>
|
</WithTooltip>
|
||||||
</span>
|
</span>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
||||||
</Col>
|
</Col>
|
||||||
<Col size={5}>
|
<Col size={5}>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
<SpinBoxFloat bind:value {min} {max} />
|
<SpinBoxFloat bind:value {min} {max} />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
||||||
</Col>
|
</Col>
|
||||||
<Col size={5}>
|
<Col size={5}>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
<SpinBox bind:value {min} {max} />
|
<SpinBox bind:value {min} {max} />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
<TooltipLabel {markdownTooltip}><slot /></TooltipLabel>
|
||||||
</Col>
|
</Col>
|
||||||
<Col size={5}>
|
<Col size={5}>
|
||||||
<RevertButton bind:value {defaultValue} />
|
|
||||||
<StepsInput bind:value />
|
<StepsInput bind:value />
|
||||||
|
<RevertButton bind:value {defaultValue} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
Loading…
Reference in New Issue
Block a user