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