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">
|
||||
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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user