Making button right
This commit is contained in:
parent
4a108aef06
commit
51eaa7a565
@ -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}
|
||||
|
||||
<style>
|
||||
.fl {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.lbtn {
|
||||
margin-left: auto;
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user