qa: Improve design

This commit is contained in:
nemunaire 2022-11-07 03:47:48 +01:00
commit 0e19b59452
19 changed files with 487 additions and 241 deletions

View file

@ -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>

View file

@ -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}