Reverse RevertButton being on the right side

This commit is contained in:
Henrik Giesel 2021-06-12 00:38:56 +02:00
parent 3227346f53
commit 97692e4c28
6 changed files with 12 additions and 7 deletions

View File

@ -5,6 +5,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<script lang="ts">
import { onMount, createEventDispatcher } from "svelte";
let className = "";
export { className as class };
const dispatch = createEventDispatcher();
let spanRef: HTMLSpanElement;
@ -14,7 +17,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
});
</script>
<span bind:this={spanRef} class="badge" on:click>
<span bind:this={spanRef} class={`badge ${className}`} on:click>
<slot />
</span>

View File

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

View File

@ -36,8 +36,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<span class:invisible={!modified}>
<WithTooltip tooltip={tr.deckConfigRevertButtonTooltip()} let:createTooltip>
<Badge on:mount={(event) => createTooltip(event.detail.span)} on:click={revert}
>{@html revertIcon}</Badge
<Badge
class="px-1"
on:mount={(event) => createTooltip(event.detail.span)}
on:click={revert}>{@html revertIcon}</Badge
>
</WithTooltip>
</span>

View File

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

View File

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

View File

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