Making button right

This commit is contained in:
Fabian Stamm 2019-09-11 17:53:10 +02:00
parent 4a108aef06
commit 51eaa7a565

View File

@ -47,15 +47,25 @@
<div class="margin">
<svelte:component key={idx} this={component} {question} {showResult} bind:isCorrect />
</div>
<div class="margin">
<div class="margin fl">
{#if !showResult}
<button class="btn" on:click={()=>showResult = true}>
<button class="btn lbtn" on:click={()=>showResult = true}>
Check
</button>
{:else}
<button class="btn" on:click={()=>next()}>
<button class="btn lbtn" on:click={()=>next()}>
Next
</button>
{/if}
</div>
{/if}
{/if}
<style>
.fl {
display: flex;
}
.lbtn {
margin-left: auto;
}
</style>