qa: Improve design
This commit is contained in:
parent
13588fc634
commit
0e19b59452
19 changed files with 487 additions and 241 deletions
|
|
@ -47,6 +47,9 @@
|
|||
{#each fieldsExercices as field}
|
||||
<td>
|
||||
{@html exercice[field]}
|
||||
{#if field == "title" && exercice.wip}
|
||||
<Icon name="cone-striped" />
|
||||
{/if}
|
||||
</td>
|
||||
{/each}
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -15,19 +15,12 @@
|
|||
let exerciceP = getExercice($page.params.eid);
|
||||
</script>
|
||||
|
||||
<Container class="mt-2 mb-5">
|
||||
{#await exerciceP}
|
||||
{#await exerciceP}
|
||||
<Container class="mt-2 mb-5">
|
||||
<div class="d-flex justify-content-center">
|
||||
<Spinner size="lg" />
|
||||
</div>
|
||||
{:then exercice}
|
||||
<Button
|
||||
class="float-start"
|
||||
color="link"
|
||||
on:click={() => goto('exercices')}
|
||||
>
|
||||
<Icon name="chevron-left" />
|
||||
</Button>
|
||||
<ExerciceQA {exercice} />
|
||||
{/await}
|
||||
</Container>
|
||||
</Container>
|
||||
{:then exercice}
|
||||
<ExerciceQA {exercice} />
|
||||
{/await}
|
||||
|
|
|
|||
Reference in a new issue